This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/27537] XMM alignment fault when compiling for i386 with -Os
- From: "vda dot linux at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jul 2007 00:03:59 -0000
- Subject: [Bug target/27537] XMM alignment fault when compiling for i386 with -Os
- References: <bug-27537-12669@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from vda dot linux at googlemail dot com 2007-07-23 00:03 -------
Disadvantages of enforcing 16-bytes stack alignment, continued:
* Code to align the stack is generated when we call a function, even when this
function isn't going to use SSE. Which is ~90% of all functions out there.
* gcc-generated SSE code will still crash if called from code compiled by older
gcc on non-gcc compiler which chose to not align stack. Note that alternative
approach (to align stack _in the function which needs it_) will not crash if
called by code generated by old or new gcc. I like it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27537