sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK arguments into account for stack_regs.

* sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
	arguments into account for stack_regs.

From-SVN: r54961
This commit is contained in:
J"orn Rennecke 2002-06-24 18:11:55 +00:00 committed by Joern Rennecke
parent 0d893a6354
commit 87912be720
2 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Mon Jun 24 18:53:56 2002 J"orn Rennecke <joern.rennecke@superh.com>
* sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
arguments into account for stack_regs.
2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
* doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'

View file

@ -1711,9 +1711,13 @@ struct sh_args {
(CUM).arg_count[(int) SH_ARG_INT] += numregs; \
if (TARGET_SHCOMPACT \
&& SHCOMPACT_FORCE_ON_STACK (MODE_, TYPE_)) \
(CUM).call_cookie \
|= CALL_COOKIE_INT_REG (((CUM).arg_count[(int) SH_ARG_INT] \
- numregs), 1); \
{ \
(CUM).call_cookie \
|= CALL_COOKIE_INT_REG (((CUM).arg_count[(int) SH_ARG_INT] \
- numregs), 1); \
/* N.B. We want this also for outgoing. */\
(CUM).stack_regs += numregs; \
} \
else if ((CUM).byref) \
{ \
if (! (CUM).outgoing) \