[Bug rtl-optimization/18260] generated code uses memory beyond allocated stack frame.

jtc at acorntoolworks dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 1 22:45:00 GMT 2004


------- Additional Comments From jtc at acorntoolworks dot com  2004-11-01 22:45 -------
I seem to have missed the description of the "red-zone" when I read the ABI.  It's a neat optimization 
for leaf functions, but violates the principal of least suprise.

I have confirmed that the MySQL4 crashes that we were experiencing went away with -mno-red-zone.

I have done further investigation, and it appears that NetBSD/amd64's thread context switch code did 
not preserve the red-zone until recently.  This has been fixed in -current, and hopefully the changes 
will be pulled up to the release branch before 2.0 is released.


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


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



More information about the Gcc-bugs mailing list