aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2010-08-09 14:07:58 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2010-08-09 14:07:58 +0000
commitf38958e826ab3971068e7f0605966da9dbd461f2 (patch)
treec8260d9815d8d4bc233f5955b7299662d6909600 /gcc/function.c
parentec64af64d6829135a7d8b5254f3b7881a18b5aba (diff)
downloadgcc-f38958e826ab3971068e7f0605966da9dbd461f2.zip
gcc-f38958e826ab3971068e7f0605966da9dbd461f2.tar.gz
gcc-f38958e826ab3971068e7f0605966da9dbd461f2.tar.bz2
builtins.c (fold_builtin_next_arg): Use stdarg_p.
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. From-SVN: r163033
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/function.c b/gcc/function.c
index a540d05..5a4dc10 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -4293,11 +4293,7 @@ allocate_struct_function (tree fndecl, bool abstract_p)
cfun->returns_struct = 1;
}
- cfun->stdarg
- = (fntype
- && TYPE_ARG_TYPES (fntype) != 0
- && (TREE_VALUE (tree_last (TYPE_ARG_TYPES (fntype)))
- != void_type_node));
+ cfun->stdarg = stdarg_p (fntype);
/* Assume all registers in stdarg functions need to be saved. */
cfun->va_list_gpr_size = VA_LIST_MAX_GPR_SIZE;