diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-01-31 18:42:55 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-01-31 18:42:55 +0000 |
commit | a0524eb3f5ea62777e9e838f724ab4965c1a98ef (patch) | |
tree | 8ed152407b62814578e590f8841b64755623f292 /gcc | |
parent | 852dcbdd7834df145afa036f5d591da9429ec88a (diff) | |
download | gcc-a0524eb3f5ea62777e9e838f724ab4965c1a98ef.zip gcc-a0524eb3f5ea62777e9e838f724ab4965c1a98ef.tar.gz gcc-a0524eb3f5ea62777e9e838f724ab4965c1a98ef.tar.bz2 |
i386-protos.h: Remove the prototype for ix86_setup_incoming_varargs.
* config/i386/i386-protos.h: Remove the prototype for
ix86_setup_incoming_varargs.
* config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
(ix86_setup_incoming_varargs): Make it static.
* config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
From-SVN: r77046
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/i386/i386-protos.h | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 21 | ||||
-rw-r--r-- | gcc/config/i386/i386.h | 18 |
4 files changed, 15 insertions, 34 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index de72c4e..67b2e83 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,13 @@ 2004-01-31 Kazu Hirata <kazu@cs.umass.edu> + * config/i386/i386-protos.h: Remove the prototype for + ix86_setup_incoming_varargs. + * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New. + (ix86_setup_incoming_varargs): Make it static. + * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove. + +2004-01-31 Kazu Hirata <kazu@cs.umass.edu> + * alloc-pool.c: Fix comment typos. * builtin-types.def: Likewise. * builtins.def: Likewise. diff --git a/gcc/config/i386/i386-protos.h b/gcc/config/i386/i386-protos.h index cc1bb81..ba7dda1 100644 --- a/gcc/config/i386/i386-protos.h +++ b/gcc/config/i386/i386-protos.h @@ -165,8 +165,6 @@ extern int ix86_function_arg_boundary (enum machine_mode, tree); extern int ix86_return_in_memory (tree); extern void ix86_va_start (tree, rtx); extern rtx ix86_va_arg (tree, tree); -extern void ix86_setup_incoming_varargs (CUMULATIVE_ARGS *, - enum machine_mode, tree, int *, int); extern rtx ix86_force_to_memory (enum machine_mode, rtx); extern void ix86_free_from_memory (enum machine_mode); diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 02105a8..decbd6e 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -834,6 +834,8 @@ static void x86_file_start (void); static void ix86_reorg (void); static bool ix86_expand_carry_flag_compare (enum rtx_code, rtx, rtx, rtx*); static tree ix86_build_builtin_va_list (void); +static void ix86_setup_incoming_varargs (CUMULATIVE_ARGS *, enum machine_mode, + tree, int *, int); struct ix86_address { @@ -1029,6 +1031,9 @@ static void init_ext_80387_constants (void); #undef TARGET_STRUCT_VALUE_RTX #define TARGET_STRUCT_VALUE_RTX hook_rtx_tree_int_null +#undef TARGET_SETUP_INCOMING_VARARGS +#define TARGET_SETUP_INCOMING_VARARGS ix86_setup_incoming_varargs + struct gcc_target targetm = TARGET_INITIALIZER; /* The svr4 ABI for the i386 says that records and unions are returned @@ -2947,21 +2952,9 @@ ix86_build_builtin_va_list (void) return build_array_type (record, build_index_type (size_zero_node)); } -/* Perform any needed actions needed for a function that is receiving a - variable number of arguments. - - CUM is as above. - - MODE and TYPE are the mode and type of the current parameter. - - PRETEND_SIZE is a variable that should be set to the amount of stack - that must be pushed by the prolog to pretend that our caller pushed - it. +/* Worker function for TARGET_SETUP_INCOMING_VARARGS. */ - Normally, this macro will push all remaining incoming registers on the - stack and set PRETEND_SIZE to the length of the registers pushed. */ - -void +static void ix86_setup_incoming_varargs (CUMULATIVE_ARGS *cum, enum machine_mode mode, tree type, int *pretend_size ATTRIBUTE_UNUSED, int no_rtl) diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index f49f8b4..ddfbceb 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -1788,24 +1788,6 @@ typedef struct ix86_args { #define FUNCTION_ARG_PASS_BY_REFERENCE(CUM, MODE, TYPE, NAMED) \ function_arg_pass_by_reference(&CUM, MODE, TYPE, NAMED) -/* Perform any needed actions needed for a function that is receiving a - variable number of arguments. - - CUM is as above. - - MODE and TYPE are the mode and type of the current parameter. - - PRETEND_SIZE is a variable that should be set to the amount of stack - that must be pushed by the prolog to pretend that our caller pushed - it. - - Normally, this macro will push all remaining incoming registers on the - stack and set PRETEND_SIZE to the length of the registers pushed. */ - -#define SETUP_INCOMING_VARARGS(CUM, MODE, TYPE, PRETEND_SIZE, NO_RTL) \ - ix86_setup_incoming_varargs (&(CUM), (MODE), (TYPE), &(PRETEND_SIZE), \ - (NO_RTL)) - /* Implement `va_start' for varargs and stdarg. */ #define EXPAND_BUILTIN_VA_START(VALIST, NEXTARG) \ ix86_va_start (VALIST, NEXTARG) |