[Bug target/43004] sparc 64-bit stack slot allocation overlaps with alloca

davem at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Feb 10 00:49:00 GMT 2010



------- Comment #3 from davem at gcc dot gnu dot org  2010-02-10 00:49 -------
I've root caused this to the Linux kernel not 16-byte aligning thread
stacks when using the clone() system call (it was enforcing only 8-byte
alignment), and also signal stacks.

The seconday mem TFmode stack slot was hiding this bug.

All of this does point out, however, that GCC does a lot of unnecessary
alignment of the final alloca() buffer pointer.  Perhaps tweaking of
the MUST_ALIGN code in explow.c can fix this.


-- 

davem at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43004



More information about the Gcc-bugs mailing list