This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/36359] [Regression] compile error in linux-kernel 2.6.26-rc4 with -O2
- From: "aldot at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2008 11:07:41 -0000
- Subject: [Bug c/36359] [Regression] compile error in linux-kernel 2.6.26-rc4 with -O2
- References: <bug-36359-16254@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from aldot at gcc dot gnu dot org 2008-06-10 11:07 -------
smallish testcase, fwiw.
$ gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -Werror-implicit-function-declaration -fno-stack-protector
-mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686
-ffreestanding -pipe -fno-asynchronous-unwind-tables -mno-sse -mno-mmx
-mno-sse2 -mno-3dnow -O2 -c -o pr.o pr36359.c
$ nm pr.o
U argh
00000000 T foo
U urb
$ cat pr36359.c
extern int urb;
int argh(void);
void foo(void)
{
if (urb <= 0)
return;
urb = __builtin_constant_p(urb) ? 0x0815 : argh();
}
--
aldot at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aldot at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36359