From 2e15d750aba52b4a94ba90fd574973adf74f72c3 Mon Sep 17 00:00:00 2001 From: rth Date: Thu, 30 Oct 2003 02:02:49 +0000 Subject: * builtins.c (std_build_builtin_va_list): New. * expr.h (std_build_builtin_va_list): Declare. * defaults.h (BUILD_VA_LIST_TYPE): New. * system.h (BUILD_VA_LIST_TYPE): Poison. * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New. * target.h (struct gcc_target): Add build_builtin_va_list. * tree.c (build_common_tree_nodes_2): Use it. * config/alpha/alpha-protos.h, config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/unicosmk.h, config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h, config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h, config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h, config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h, config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c, config/mips/mips.h, config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h, config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h, config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c, config/xtensa/xtensa.h: Rename foo_build_va_list to foo_build_builtin_va_list; make it static. Define TARGET_BUILD_BUILTIN_VA_LIST. Remove BUILD_VA_LIST_TYPE. Update protos. * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static. * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73076 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/i860/i860-protos.h | 4 ---- gcc/config/i860/i860.c | 8 +++++--- gcc/config/i860/i860.h | 4 ---- 3 files changed, 5 insertions(+), 11 deletions(-) (limited to 'gcc/config/i860') diff --git a/gcc/config/i860/i860-protos.h b/gcc/config/i860/i860-protos.h index e29a5cd4895..74568af66b5 100644 --- a/gcc/config/i860/i860-protos.h +++ b/gcc/config/i860/i860-protos.h @@ -51,9 +51,5 @@ extern rtx i860_va_arg (tree, tree); #endif /* TREE_CODE */ #endif /* RTX_CODE */ -#ifdef TREE_CODE -extern tree i860_build_va_list (void); -#endif /* TREE_CODE */ - extern void tdesc_section (void); diff --git a/gcc/config/i860/i860.c b/gcc/config/i860/i860.c index a8585eff404..9946f261c7c 100644 --- a/gcc/config/i860/i860.c +++ b/gcc/config/i860/i860.c @@ -1813,8 +1813,8 @@ i860_saveregs (void) The tree representing the va_list declaration is returned. */ -tree -i860_build_va_list (void) +static tree +i860_build_builtin_va_list (void) { tree f_gpr, f_fpr, f_mem, f_sav, record, type_decl; @@ -2117,5 +2117,7 @@ i860_init_libfuncs (void) #undef TARGET_INIT_LIBFUNCS #define TARGET_INIT_LIBFUNCS i860_init_libfuncs -struct gcc_target targetm = TARGET_INITIALIZER; +#undef TARGET_BUILD_BUILTIN_VA_LIST +#define TARGET_BUILD_BUILTIN_VA_LIST i860_build_builtin_va_list +struct gcc_target targetm = TARGET_INITIALIZER; diff --git a/gcc/config/i860/i860.h b/gcc/config/i860/i860.h index b5575ec7f1c..c600f0276ec 100644 --- a/gcc/config/i860/i860.h +++ b/gcc/config/i860/i860.h @@ -571,10 +571,6 @@ struct cumulative_args { int ints, floats; }; #define EXPAND_BUILTIN_SAVEREGS() \ i860_saveregs() -/* Define the `__builtin_va_list' type for the ABI. */ -#define BUILD_VA_LIST_TYPE(VALIST) \ - (VALIST) = i860_build_va_list () - /* Implement `va_start' for varargs and stdarg. */ #define EXPAND_BUILTIN_VA_START(valist, nextarg) \ i860_va_start (valist, nextarg) -- cgit v1.2.1