This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/18260] generated code uses memory beyond allocated stack frame.
- From: "jtc at acorntoolworks dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Nov 2004 22:45:43 -0000
- Subject: [Bug rtl-optimization/18260] generated code uses memory beyond allocated stack frame.
- References: <20041101000818.18260.jtc@acorntoolworks.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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