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:20:54 -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 #13 from aldot at gcc dot gnu dot org 2008-06-10 11:20 -------
should have been
int argh(void) __attribute__((error ("dce?")));
works without __builtin_constant_p and fails even with
-Os -ftree-dce -fweb -ftree-fre -ftree-pre
pr36359.c: In function 'foo':
pr36359.c:7: error: call to 'argh' declared with attribute error: dce?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36359