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: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Nov 2004 13:06:26 -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 falk at debian dot org 2004-11-01 13:06 -------
(In reply to comment #0)
> It appears that the memory for local
> variables is not accounted for entirely correctly. There are 1024+ bytes of
> local variables, but the stack pointer (%rsp) is only adjusted by 912 bytes.
> And it appears local variable "count" is referenced before the stack pointer
> (-120(%rsp)).
This is OK, since the AMD64 ABI specifies a 128 byte "red zone" below the stack
pointer that the kernel must not touch on an interrupt. If it does, it's
a kernel bug. You can try -fno-red-zone to see whether this is actually the
problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18260