diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2010-10-08 13:18:51 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2010-10-08 13:18:51 +0000 |
commit | 3cb1da52cb6eef3eeec78ef672799b972d9db48a (patch) | |
tree | 48669180287880708a4290bc1f2fd657d235391b /gcc | |
parent | 925ed112f030f308f2c9fa4f1c8b8a5e18a41049 (diff) | |
download | gcc-3cb1da52cb6eef3eeec78ef672799b972d9db48a.zip gcc-3cb1da52cb6eef3eeec78ef672799b972d9db48a.tar.gz gcc-3cb1da52cb6eef3eeec78ef672799b972d9db48a.tar.bz2 |
s390-protos.h (s390_function_arg_advance): Delete.
* config/s390/s390-protos.h (s390_function_arg_advance): Delete.
(s390_function_arg): Delete.
* config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
* config/s390/s390.c (s390_function_arg_float): Take a const_tree.
(s390_function_arg_integer): Likewise.
(s390_function_arg_advance): Make static. Take a const_tree and
a bool.
(s390_function_arg): Likewise.
(TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
From-SVN: r165180
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/config/s390/s390-protos.h | 3 | ||||
-rw-r--r-- | gcc/config/s390/s390.c | 18 | ||||
-rw-r--r-- | gcc/config/s390/s390.h | 6 |
4 files changed, 23 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ff2a84..be15278 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,17 @@ 2010-10-08 Nathan Froyd <froydnj@codesourcery.com> + * config/s390/s390-protos.h (s390_function_arg_advance): Delete. + (s390_function_arg): Delete. + * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete. + * config/s390/s390.c (s390_function_arg_float): Take a const_tree. + (s390_function_arg_integer): Likewise. + (s390_function_arg_advance): Make static. Take a const_tree and + a bool. + (s390_function_arg): Likewise. + (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define. + +2010-10-08 Nathan Froyd <froydnj@codesourcery.com> + * config/spu/spu-protos.h (spu_function_arg): Delete. * config/spu/spu.h (FUNCTION_ARG): Delete. (FUNCTION_ARG_ADVANCE): Move code to ... diff --git a/gcc/config/s390/s390-protos.h b/gcc/config/s390/s390-protos.h index e3cc59c..ec26c4d 100644 --- a/gcc/config/s390/s390-protos.h +++ b/gcc/config/s390/s390-protos.h @@ -116,10 +116,7 @@ extern int s390_compare_and_branch_condition_mask (rtx); #endif /* RTX_CODE */ #ifdef TREE_CODE -extern void s390_function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode, - tree, int); #ifdef RTX_CODE -extern rtx s390_function_arg (CUMULATIVE_ARGS *, enum machine_mode, tree, int); extern rtx s390_function_value (const_tree, const_tree, enum machine_mode); #endif /* RTX_CODE */ #endif /* TREE_CODE */ diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 7fec1b9..e2d3851 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -8340,7 +8340,7 @@ s390_function_arg_size (enum machine_mode mode, const_tree type) is to be passed in a floating-point register, if available. */ static bool -s390_function_arg_float (enum machine_mode mode, tree type) +s390_function_arg_float (enum machine_mode mode, const_tree type) { int size = s390_function_arg_size (mode, type); if (size > 8) @@ -8385,7 +8385,7 @@ s390_function_arg_float (enum machine_mode mode, tree type) registers, if available. */ static bool -s390_function_arg_integer (enum machine_mode mode, tree type) +s390_function_arg_integer (enum machine_mode mode, const_tree type) { int size = s390_function_arg_size (mode, type); if (size > 8) @@ -8447,9 +8447,9 @@ s390_pass_by_reference (CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED, argument is a named argument (as opposed to an unnamed argument matching an ellipsis). */ -void +static void s390_function_arg_advance (CUMULATIVE_ARGS *cum, enum machine_mode mode, - tree type, int named ATTRIBUTE_UNUSED) + const_tree type, bool named ATTRIBUTE_UNUSED) { if (s390_function_arg_float (mode, type)) { @@ -8483,9 +8483,9 @@ s390_function_arg_advance (CUMULATIVE_ARGS *cum, enum machine_mode mode, to pass floating point arguments. All remaining arguments are pushed to the stack. */ -rtx -s390_function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, tree type, - int named ATTRIBUTE_UNUSED) +static rtx +s390_function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, + const_tree type, bool named ATTRIBUTE_UNUSED) { if (s390_function_arg_float (mode, type)) { @@ -10568,6 +10568,10 @@ s390_loop_unroll_adjust (unsigned nunroll, struct loop *loop) #undef TARGET_FUNCTION_OK_FOR_SIBCALL #define TARGET_FUNCTION_OK_FOR_SIBCALL s390_function_ok_for_sibcall +#undef TARGET_FUNCTION_ARG +#define TARGET_FUNCTION_ARG s390_function_arg +#undef TARGET_FUNCTION_ARG_ADVANCE +#define TARGET_FUNCTION_ARG_ADVANCE s390_function_arg_advance #undef TARGET_FIXED_CONDITION_CODE_REGS #define TARGET_FIXED_CONDITION_CODE_REGS s390_fixed_condition_code_regs diff --git a/gcc/config/s390/s390.h b/gcc/config/s390/s390.h index ca04a7c..2b18111 100644 --- a/gcc/config/s390/s390.h +++ b/gcc/config/s390/s390.h @@ -691,12 +691,6 @@ CUMULATIVE_ARGS; #define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, NN, N_NAMED_ARGS) \ ((CUM).gprs=0, (CUM).fprs=0) -#define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED) \ - s390_function_arg_advance (&CUM, MODE, TYPE, NAMED) - -#define FUNCTION_ARG(CUM, MODE, TYPE, NAMED) \ - s390_function_arg (&CUM, MODE, TYPE, NAMED) - /* Arguments can be placed in general registers 2 to 6, or in floating point registers 0 and 2 for 31 bit and fprs 0, 2, 4 and 6 for 64 bit. */ |