[PATCH 4.5]: Fix PR39146 unneccesary stack realign
Ye, Joey
joey.ye@intel.com
Mon Mar 2 07:43:00 GMT 2009
Refer to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39146
gcc/ChangeLog:
2009-03-01 Joey Ye <joey.ye@intel.com>
PR middle-end/39146
* cfgexpand.c (get_decl_align_unit): Update
max_used_stack_slot_alignment with align instead of
stack_alignment_needed.
* function.c (assign_stack_local_1): Update
max_used_stack_slot_alignment with alignment_in_bits instead
of stack_alignment_needed.
(locate_and_pad_parm): Don't update max_used_stack_slot_alignment
here.
Modified:
branches/stack/gcc/cfgexpand.c
branches/stack/gcc/function.c
testsuites/ChangeLog:
2009-03-01 H.J. Lu <hongjiu.lu@intel.com>
* gcc.target/i386/avx-m256-align.c: New testcase.
Thanks - Joey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-pr39146-1.patch
Type: application/octet-stream
Size: 2399 bytes
Desc: gcc-pr39146-1.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090302/cc9e33d5/attachment.obj>
More information about the Gcc-patches
mailing list