mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-23 22:30:04 +08:00
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:
parent
2ff3688d31
commit
2fabc3d68e
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user