This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/49016] New: always_inline causes references below the current stack pointer
- From: "merrill_707_1 at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 May 2011 22:55:46 +0000
- Subject: [Bug c/49016] New: always_inline causes references below the current stack pointer
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49016
Summary: always_inline causes references below the current
stack pointer
Product: gcc
Version: 4.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: merrill_707_1@yahoo.com
Created attachment 24256
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24256
A script to run to compile t.c
When "inline __attribute__((always_inline))" is used, as is set up in some
Linux 2.6 kernel builds in gcc-compiler.h / compiler.h etc., then references to
memory below the current stack pointer can be made, when optimization is turned
off.
In fact, such references can also occur with -O2, but that is not such a simple
test program to generate. Here is a test program which generates the problem
with no optimization turned on.
To compile, run the "rc" script.