This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37843] [4.4 Regression] unaligned stack in main due to tail call optimization
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2009 15:08:10 -0000
- Subject: [Bug middle-end/37843] [4.4 Regression] unaligned stack in main due to tail call optimization
- References: <bug-37843-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #23 from jakub at gcc dot gnu dot org 2009-01-15 15:08 -------
Please s/incomoing/incoming/g in the patch. Otherwise the patch makes a lot of
sense to me. As INCOMING_STACK_BOUNDARY is used not only in
expand_stack_alignment, but also in 386's targetm.function_ok_for_sibcall (and
i386 is the only target that has variable INCOMING_STACK_BOUNDARY ATM). This
target hook is called from expand_call, indirectly from
expand_gimple_basic_block. expand_stack_alignment is called after all the
expand_gimple_basic_block calls, and the patch moves INCOMING_STACK_BOUNDARY
initialization before those calls.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37843