diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-07-26 01:21:03 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-07-26 01:21:03 +0000 |
commit | a66c9326b2d7b71c9cd97aceb1f9a1f317976e39 (patch) | |
tree | 8fa42459376747733591714ae5bc7de26ab8671f /gcc/c-common.h | |
parent | bbcca9ce45999951f6473bf61fd40c0d43bcde60 (diff) | |
download | gcc-a66c9326b2d7b71c9cd97aceb1f9a1f317976e39.tar.gz |
* builtins.c (expand_builtin_saveregs): Remove static, remove exp
and ignore arguments, bail if no EXPAND_BUILTIN_SAVEREGS.
(expand_builtin_next_arg): Accept ARGLIST not EXP.
(stabilize_va_list): New function.
(std_expand_builtin_va_start): New function.
(expand_builtin_va_start): New function.
(get_varargs_alias_set): New function.
(std_expand_builtin_va_arg): New function.
(expand_builtin_va_arg): New function.
(expand_builtin_va_end): New function.
(expand_builtin_va_copy): New function.
(expand_builtin): Call them.
* c-common.c (c_common_nodes_and_builtins): Build __builtin_va_list,
__builtin_{varargs_start,stdarg_start,end,copy}.
(build_va_arg): New function.
* c-common.h (CTI_PTR_TYPE, ptr_type_node): Delete.
(build_va_arg): Declare.
* c-decl.c (ptr_type_node, va_list_type_node): New.
* c-parse.gperf (__builtin_va_arg): New.
* c-parse.in (VA_ARG): New token.
(unary_expr): Recognize it.
* expr.c (expand_expr): Expand VA_ARG_EXPR.
* expr.h (std_expand_builtin_va_start): Declare.
(std_expand_builtin_va_arg): Declare.
(expand_builtin_va_arg): Declare.
(get_varargs_alias_set): Declare.
* tree.def (VA_ARG_EXPR): New.
* tree.h (BUILT_IN_VARARGS_START): New.
(BUILT_IN_STDARG_START, BUILT_IN_VA_END): New.
(ptr_type_node, va_list_type_node): Declare.
* tm.texi (EXPAND_BUILTIN_SAVEREGS): Kill unused ARGLIST argument.
* m32r.h (EXPAND_BUILTIN_SAVEREGS): Likewise.
* m88k.h, m88k.c: Likewise.
* mn10300.h, mn10300.c: Likewise.
* pa.h, pa.c: Likewise.
* rs6000.h, rs6000.c: Likewise.
* sh.h, sh.c: Likewise.
* sparc.h, sparc.c: Likewise.
* emit-rtl.c (operand_subword): Copy alias set.
(change_address): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28243 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index 0290c8f0e63..ec4a556a2e4 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -63,7 +63,6 @@ enum c_tree_index CTI_STRING_TYPE, CTI_CONST_STRING_TYPE, - CTI_PTR_TYPE, CTI_CONST_PTR_TYPE, CTI_PTRDIFF_TYPE, @@ -126,7 +125,6 @@ extern tree c_global_trees[CTI_MAX]; #define boolean_true_node c_global_trees[CTI_BOOLEAN_TRUE] #define boolean_false_node c_global_trees[CTI_BOOLEAN_FALSE] -#define ptr_type_node c_global_trees[CTI_PTR_TYPE] #define const_ptr_type_node c_global_trees[CTI_CONST_PTR_TYPE] #define ptrdiff_type_node c_global_trees[CTI_PTRDIFF_TYPE] @@ -190,3 +188,5 @@ extern tree builtin_function PROTO((const char *, tree, enum built_in_function /* Build tree nodes and builtin functions common to both C and C++ language frontends. */ extern void c_common_nodes_and_builtins PROTO((int, int, int)); + +extern tree build_va_arg PROTO((tree, tree)); |