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: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Aug 2006 17:42:34 -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 #10 from hjl at lucon dot org 2006-08-21 17:42 -------
I have a mixed feeling toward this. On one hand, gcc does assume 16byte stack
aligment. On the other hand, the original ia32 psABI only calls for 4 byte
stack aliment. Requiring 16 byte aligment will make sure the outputs from gcc
will be compatible with each other. But it means that the outputs from gcc
aren't 100% compatible with the outputs from other compilers, which only
enforce 4byte stack aligment following the original ia32 psABI.
I guess that it may not be feasible to enforce 4byte stack aligment in gcc
without code degradation.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27537