diff options
author | Roman Lechtchinsky <rl@cs.tu-berlin.de> | 2001-09-10 10:10:16 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2001-09-10 10:10:16 +0000 |
commit | 0df299ae0b9ef2d4ba4649db92b033d2baecafcb (patch) | |
tree | 2741623bc981ac2187ee03d54164931a719749cf /gcc | |
parent | c347e68d71ffaaf932cbe5263235afcc14129c55 (diff) | |
download | gcc-0df299ae0b9ef2d4ba4649db92b033d2baecafcb.zip gcc-0df299ae0b9ef2d4ba4649db92b033d2baecafcb.tar.gz gcc-0df299ae0b9ef2d4ba4649db92b033d2baecafcb.tar.bz2 |
calls.c (store_one_arg): Make sure that the entire argument is pushed if...
* calls.c (store_one_arg): Make sure that the entire argument is
pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
From-SVN: r45501
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/calls.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bcf8e62..df5139d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-09-10 Roman Lechtchinsky <rl@cs.tu-berlin.de> + + * calls.c (store_one_arg): Make sure that the entire argument is + pushed if STACK_PARMS_IN_REG_PARM_AREA is defined. + 2001-09-09 Richard Henderson <rth@redhat.com> * emit-rtl.c (adjust_address): Fix mode for LO_SUM. diff --git a/gcc/calls.c b/gcc/calls.c index 8d6d084..dc915ad 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -4567,7 +4567,11 @@ store_one_arg (arg, argblock, flags, variable_size, reg_parm_stack_space) /* If parm is passed both in stack and in register and offset is greater than reg_parm_stack_space, split the offset. */ +#ifndef STACK_PARMS_IN_REG_PARM_AREA if (arg->reg && arg->pass_on_stack) +#else + if (1) +#endif { if (arg->offset.constant < reg_parm_stack_space && arg->offset.var) error ("variable offset is passed paritially in stack and in reg"); @@ -4583,8 +4587,6 @@ store_one_arg (arg, argblock, flags, variable_size, reg_parm_stack_space) excess, argblock, ARGS_SIZE_RTX (arg->offset), reg_parm_stack_space, ARGS_SIZE_RTX (arg->alignment_pad)); - - size_rtx = GEN_INT (INTVAL(size_rtx) - reg_parm_stack_space); } } |