re PR rtl-optimization/12372 (miscompilation of execute/20030307-1.c at -O2 and -Os)

PR optimization/12372
	* calls.c (expand_call): Add call_fusage data for stack arguments in
	constant calls.

From-SVN: r75926
This commit is contained in:
John David Anglin 2004-01-15 14:58:06 +00:00 committed by John David Anglin
parent 2ff3688d31
commit 2fabc3d68e
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR optimization/12372
* calls.c (expand_call): Add call_fusage data for stack arguments in
constant calls.
2004-01-15 Alan Modra <amodra@bigpond.net.au>
* config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.

View File

@ -3025,6 +3025,14 @@ expand_call (tree exp, rtx target, int ignore)
&& check_sibcall_argument_overlap (before_arg,
&args[i], 1)))
sibcall_failure = 1;
if (flags & ECF_CONST
&& args[i].stack
&& args[i].value == args[i].stack)
call_fusage = gen_rtx_EXPR_LIST (VOIDmode,
gen_rtx_USE (VOIDmode,
args[i].value),
call_fusage);
}
/* If we have a parm that is passed in registers but not in memory