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

2008-11-14 Thread pinskia at gcc dot gnu dot org
--- Comment #14 from pinskia at gcc dot gnu dot org 2008-11-15 00:28 --- (In reply to comment #12) > smallish testcase, fwiw. No that should have a call to argh. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36359

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

2008-06-10 Thread aldot 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: ca

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

2008-06-10 Thread aldot 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-

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

2008-06-10 Thread bunk at stusta dot de
--- 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'

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

2008-06-10 Thread bunk at stusta dot de
--- Comment #10 from bunk at stusta dot de 2008-06-10 10:11 --- Created an attachment (id=15745) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15745&action=view) Mirco's usbcore.o -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36359

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

2008-06-07 Thread pinskia at gmail dot com
--- Comment #9 from pinskia at gmail dot com 2008-06-08 00:33 --- Subject: Re: [Regression] compile error in linux-kernel 2.6.26-rc4 with -O2 On Sat, Jun 7, 2008 at 5:17 PM, mt-ml at gmx dot de <[EMAIL PROTECTED]> wrote: > As you can see, the argument to ilog2 is urb->interval which ca

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

2008-06-07 Thread Andrew Pinski
On Sat, Jun 7, 2008 at 5:17 PM, mt-ml at gmx dot de <[EMAIL PROTECTED]> wrote: > As you can see, the argument to ilog2 is urb->interval which can't be zero at > that point IMHO. Yes and that requires a lot of jump threading and many other optimizations to detect that really. First PRE has to be w

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

2008-06-07 Thread mt-ml at gmx dot de
--- Comment #8 from mt-ml at gmx dot de 2008-06-08 00:17 --- I've been able to identify the code where ilog2 is called. If I do not choose usbcore as a module I get the following error: drivers/built-in.o: In function `usb_submit_urb': (.text+0xc247f): undefined reference to `ilog2_N

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

2008-05-31 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2008-05-31 15:45 --- 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. -- rguenth at gcc dot gnu dot org changed: What

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

2008-05-31 Thread mt-ml at gmx dot de
--- Comment #6 from mt-ml at gmx dot de 2008-05-31 13:59 --- I was able to find the function in which the error occurs. It's usb_submit_urb in drivers/usb/core/urb.c I think. The command: $ gcc -c -save-temps drivers/usb/core/urb.c -I include executed in the linux-kernel main directory g

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

2008-05-31 Thread mt-ml at gmx dot de
--- Comment #5 from mt-ml at gmx dot de 2008-05-31 13:58 --- Created an attachment (id=15707) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15707&action=view) preprocessed sources of urb.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36359

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

2008-05-28 Thread mt-ml at gmx dot de
--- Comment #4 from mt-ml at gmx dot de 2008-05-28 23:08 --- (In reply to comment #2) > This sounds like a kernel bug. At least we need preprocessed source of the > source file in drivers/usb/core/usbcore.ko that generates the reference > to ilog2_NaN. > Can you advise me please ho

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

2008-05-28 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-05-28 22:52 --- http://lkml.org/lkml/2008/5/25/233 It says something about __builtin_constant_p being broken but I doubt it really. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36359

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

2008-05-28 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2008-05-28 22:20 --- This sounds like a kernel bug. At least we need preprocessed source of the source file in drivers/usb/core/usbcore.ko that generates the reference to ilog2_NaN. -- rguenth at gcc dot gnu dot org changed:

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

2008-05-28 Thread mt-ml at gmx dot de
--- Comment #1 from mt-ml at gmx dot de 2008-05-28 22:14 --- Created an attachment (id=15695) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15695&action=view) kernel config-file to reproduce error -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36359