[Bug c/36359] [Regression] compile error in linux-kernel 2.6.26-rc4 with -O2

aldot at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jun 10 11:21:00 GMT 2008



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



More information about the Gcc-bugs mailing list