diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-02-26 23:32:09 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-02-26 23:32:09 +0000 |
commit | 6c5caf00a8f24a9ad808fc244c5ef822d53618ca (patch) | |
tree | 19f79296cc16a5c5a5495f75561d110a31d08c25 /gcc/function.c | |
parent | 6d4fb96f24489823ea2c484ef6117dd44881e59c (diff) | |
download | gcc-6c5caf00a8f24a9ad808fc244c5ef822d53618ca.zip gcc-6c5caf00a8f24a9ad808fc244c5ef822d53618ca.tar.gz gcc-6c5caf00a8f24a9ad808fc244c5ef822d53618ca.tar.bz2 |
calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or MAYBE_REG_PARM_STACK_SPACE.
* calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
MAYBE_REG_PARM_STACK_SPACE.
* function.c: Likewise.
* system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
(MAYBE_REG_PARM_STACK_SPACE): Likewise.
* doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
(MAYBE_REG_PARM_STACK_SPACE): Likewise.
From-SVN: r78530
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/gcc/function.c b/gcc/function.c index 3991ff8..b811f3d 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -4347,12 +4347,8 @@ assign_parms (tree fndecl) fnargs = split_complex_args (fnargs); #ifdef REG_PARM_STACK_SPACE -#ifdef MAYBE_REG_PARM_STACK_SPACE - reg_parm_stack_space = MAYBE_REG_PARM_STACK_SPACE; -#else reg_parm_stack_space = REG_PARM_STACK_SPACE (fndecl); #endif -#endif #ifdef INIT_CUMULATIVE_INCOMING_ARGS INIT_CUMULATIVE_INCOMING_ARGS (args_so_far, fntype, NULL_RTX); @@ -4554,12 +4550,9 @@ assign_parms (tree fndecl) partial = FUNCTION_ARG_PARTIAL_NREGS (args_so_far, promoted_mode, passed_type, named_arg); if (partial -#ifndef MAYBE_REG_PARM_STACK_SPACE /* The caller might already have allocated stack space for the register parameters. */ - && reg_parm_stack_space == 0 -#endif - ) + && reg_parm_stack_space == 0) { /* Part of this argument is passed in registers and part is passed on the stack. Ask the prologue code to extend @@ -4660,16 +4653,10 @@ assign_parms (tree fndecl) if (entry_parm == stack_parm || (GET_CODE (entry_parm) == PARALLEL && XEXP (XVECEXP (entry_parm, 0, 0), 0) == NULL_RTX) -#if defined (REG_PARM_STACK_SPACE) && ! defined (MAYBE_REG_PARM_STACK_SPACE) +#if defined (REG_PARM_STACK_SPACE) /* On some machines, even if a parm value arrives in a register - there is still an (uninitialized) stack slot allocated for it. - - ??? When MAYBE_REG_PARM_STACK_SPACE is defined, we can't tell - whether this parameter already has a stack slot allocated, - because an arg block exists only if current_function_args_size - is larger than some threshold, and we haven't calculated that - yet. So, for now, we just assume that stack slots never exist - in this case. */ + there is still an (uninitialized) stack slot allocated + for it. */ || REG_PARM_STACK_SPACE (fndecl) > 0 #endif ) @@ -5292,11 +5279,9 @@ assign_parms (tree fndecl) minimum length. */ #ifdef REG_PARM_STACK_SPACE -#ifndef MAYBE_REG_PARM_STACK_SPACE current_function_args_size = MAX (current_function_args_size, REG_PARM_STACK_SPACE (fndecl)); #endif -#endif current_function_args_size = ((current_function_args_size + STACK_BYTES - 1) @@ -5490,11 +5475,7 @@ locate_and_pad_parm (enum machine_mode passed_mode, tree type, int in_regs, int part_size_in_regs; #ifdef REG_PARM_STACK_SPACE -#ifdef MAYBE_REG_PARM_STACK_SPACE - reg_parm_stack_space = MAYBE_REG_PARM_STACK_SPACE; -#else reg_parm_stack_space = REG_PARM_STACK_SPACE (fndecl); -#endif /* If we have found a stack parm before we reach the end of the area reserved for registers, skip that area. */ |