This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]