diff options
author | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-09 14:07:58 +0000 |
---|---|---|
committer | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-09 14:07:58 +0000 |
commit | 257d99c3322b212eaf262e0078549956d90c2141 (patch) | |
tree | c8260d9815d8d4bc233f5955b7299662d6909600 /gcc/builtins.c | |
parent | 6ecedef2bdd76b389fed2fdac0951277bb6b4acd (diff) | |
download | gcc-257d99c3322b212eaf262e0078549956d90c2141.tar.gz |
gcc/
* builtins.c (fold_builtin_next_arg): Use stdarg_p.
* config/arm/arm.c (arm_get_pcs_model): Likewise.
* config/avr/avr.c (init_cumulative_args): Likewise.
* config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
* config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
* config/m68k/m68k.c (m68k_return_pops_args): Likewise.
* config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
* config/pa/pa.c (hppa_builtin_saveregs): Likewise.
* config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
* config/rs6000/rs6000.c (init_cumulative_args): Likewise.
* dwarf2out.c (gen_subprogram_die): Likewise.
* function.c (allocate_struct_function): Likewise.
* c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
(deserves_ellipsis): Delete.
gcc/cp/
* tree.c (varargs_function_p): Use stdarg_p.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163033 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 096fec62ee3..3b9ca5a195c 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -11526,9 +11526,7 @@ fold_builtin_next_arg (tree exp, bool va_start_p) int nargs = call_expr_nargs (exp); tree arg; - if (TYPE_ARG_TYPES (fntype) == 0 - || (TREE_VALUE (tree_last (TYPE_ARG_TYPES (fntype))) - == void_type_node)) + if (!stdarg_p (fntype)) { error ("%<va_start%> used in function with fixed args"); return true; |