diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2008-08-06 15:43:46 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2008-08-06 08:43:46 -0700 |
commit | 01973e26724e32e61b3d6d580e2f3479646a5d35 (patch) | |
tree | e84199e58cc946b8b39ac0bbb9cb066b09bd3779 /gcc/calls.c | |
parent | 46662f25ea011aa367beab9b6dd6276a47c4e48a (diff) | |
download | gcc-01973e26724e32e61b3d6d580e2f3479646a5d35.zip gcc-01973e26724e32e61b3d6d580e2f3479646a5d35.tar.gz gcc-01973e26724e32e61b3d6d580e2f3479646a5d35.tar.bz2 |
re PR middle-end/37010 (-mno-accumulate-outgoing-args doesn't work with stack alignment)
gcc/
2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/37010
* calls.c (expand_call): Use the biggest preferred stack
boundary.
gcc/testsuite/
2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/37010
* gcc.dg/torture/stackalign/push-1.c: New.
From-SVN: r138808
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index d48c0d1..146f251 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -2319,10 +2319,13 @@ expand_call (tree exp, rtx target, int ignore) || !lang_hooks.decls.ok_for_sibcall (fndecl)) try_tail_call = 0; - /* Ensure current function's preferred stack - boundary is at least what we need. */ + /* Ensure current function's preferred stack boundary is at least + what we need. Stack alignment may also increase preferred stack + boundary. */ if (crtl->preferred_stack_boundary < preferred_stack_boundary) crtl->preferred_stack_boundary = preferred_stack_boundary; + else + preferred_stack_boundary = crtl->preferred_stack_boundary; preferred_unit_stack_boundary = preferred_stack_boundary / BITS_PER_UNIT; |