PR middle-end/47893
commit943d87235ae515aac8c081a29997c022429b78af
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Feb 2011 17:05:07 +0000 (28 17:05 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Feb 2011 17:05:07 +0000 (28 17:05 +0000)
tree516bcbdd71d1bf924c03920302af2c3b2d95b859
parentc8ad0c7dd5ab9d85a00af9d711c60d7497e9cd62
PR middle-end/47893
* rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
(assign_stack_local_1): Change last argument type to int.
* function.c (assign_stack_local_1): Replace reduce_alignment_ok
argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
don't record padding space into frame_space_list nor
use those areas.
(assign_stack_local): Adjust caller.
(assign_stack_temp_for_type): Call assign_stack_local_1 instead
of assign_stack_local, pass 0 as last argument.
* caller-save.c (setup_save_areas): Adjust assign_stack_local_1
callers.

* gcc.dg/pr47893.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170568 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/caller-save.c
gcc/function.c
gcc/rtl.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr47893.c [new file with mode: 0644]