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: "mt-ml at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 May 2008 13:59:43 -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 #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 gives me the attached urb.i. Is
that what you need? Executing this gives me the following errors, though:
In file included from
/home/mirco/source/kernel/linux.git/include/asm/bitops.h:421,
from
/home/mirco/source/kernel/linux.git/include/linux/bitops.h:17,
from
/home/mirco/source/kernel/linux.git/include/linux/bitmap.h:7,
from
/home/mirco/source/kernel/linux.git/include/linux/cpumask.h:90,
from
/home/mirco/source/kernel/linux.git/include/asm/processor.h:25,
from
/home/mirco/source/kernel/linux.git/include/linux/prefetch.h:14,
from
/home/mirco/source/kernel/linux.git/include/linux/list.h:6,
from
/home/mirco/source/kernel/linux.git/include/linux/module.h:9,
from urb.c:1:
/home/mirco/source/kernel/linux.git/include/asm-generic/bitops/fls64.h:33:2:
error: #error BITS_PER_LONG not 32 or 64
In file included from
/home/mirco/source/kernel/linux.git/include/linux/prefetch.h:14,
from
/home/mirco/source/kernel/linux.git/include/linux/list.h:6,
from
/home/mirco/source/kernel/linux.git/include/linux/module.h:9,
from urb.c:1:
/home/mirco/source/kernel/linux.git/include/asm/processor.h:152:1: warning:
"cache_line_size" redefined
In file included from /home/mirco/source/kernel/linux.git/include/asm/pda.h:7,
from
/home/mirco/source/kernel/linux.git/include/asm/current_64.h:7,
from
/home/mirco/source/kernel/linux.git/include/asm/current.h:4,
from
/home/mirco/source/kernel/linux.git/include/asm/processor.h:15,
from
/home/mirco/source/kernel/linux.git/include/linux/prefetch.h:14,
from
/home/mirco/source/kernel/linux.git/include/linux/list.h:6,
from
/home/mirco/source/kernel/linux.git/include/linux/module.h:9,
from urb.c:1:
/home/mirco/source/kernel/linux.git/include/linux/cache.h:64:1: warning: this
is the location of the previous definition
In file included from
/home/mirco/source/kernel/linux.git/include/linux/module.h:21,
from urb.c:1:
/home/mirco/source/kernel/linux.git/include/asm/module.h:70:2: error: #error
unknown processor family
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36359