This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17036] New: ICE: (A >> N) & 1 ? (1 << N) : 0 where A of type unsigned int
- From: "bommar33 at msu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Aug 2004 16:55:35 -0000
- Subject: [Bug c/17036] New: ICE: (A >> N) & 1 ? (1 << N) : 0 where A of type unsigned int
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The error is easily reproducible outside of the conditions of the kernel code,
and, as I'm sure you'd appreciate, I have written an example that successfully
duplicates the exact ICE as below. Attached is the significantly smaller
preprocessed example, compressed at 3k, in lieu of the 46k compressed kernel
driver :)
System: i686-pc-linux-gnu (Fedora 2 release, kernel 2.6.7-1.494.2.2, athlon-xp
1800+)
GCC Version: 3.5.0 20040801 (experimental)
GCC ./configure Options: --enable-threads --with-cpu=athlon-xp
--with-arch=athlon-xp --enable-languages=c,c++
Command:
[root@epithumadze linux-2.6.8]# make modules V=1
...
make -f scripts/Makefile.build obj=sound/synth/emux
gcc -Wp,-MD,sound/synth/emux/.emux_oss.o.d -nostdinc -iwithprefix include
-D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -pipe -msoft-float -mpreferred-stack-boundary=2
-fno-unit-at-a-time -march=athlon -mregparm=3 -Iinclude/asm-i386/mach-default
-O2 -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE
-DKBUILD_BASENAME=emux_oss -DKBUILD_MODNAME=snd_emux_synth -c -o
sound/synth/emux/emux_oss.o sound/synth/emux/emux_oss.c
Compiler Output:
sound/synth/emux/emux_oss.c: In function `emuspec_control':
sound/synth/emux/emux_oss.c:400: internal compiler error: tree check: expected
integer_cst, have var_decl in fold, at fold-const.c:8855
--
Summary: ICE: (A >> N) & 1 ? (1 << N) : 0 where A of type
unsigned int
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bommar33 at msu dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17036