[Bug c/36359] [Regression] compile error in linux-kernel 2.6.26-rc4 with -O2
bunk at stusta dot de
gcc-bugzilla@gcc.gnu.org
Tue Jun 10 10:29:00 GMT 2008
------- Comment #11 from bunk at stusta dot de 2008-06-10 10:28 -------
(In reply to comment #7)
> Looking at http://www.readcode.org/code/linux-2.6.20/include/linux/log2.h it
> seems that either the argument to ilog _is_ zero or the compiler thinks so.
If you disassemble Mirco's usbcore.o you'll see why I said "I'd have said your
gcc has a bug regarding __builtin_constant_p()": The compiler does not think
the argument to ilog() was zero - it expanded _all_ the code for the case when
__builtin_constant_p(n) returns true.
--
bunk at stusta dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bunk at stusta dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36359
More information about the Gcc-bugs
mailing list