This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]