This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35600] New: ice for legal kernel code with new snapshot
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2008 19:41:16 -0000
- Subject: [Bug c/35600] New: ice for legal kernel code with new snapshot
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I just tried to compile the Linux kernel 2.6.24.3
with the GNU C compiler version 4.4 snapshot 20080314
The compiler said
gcc -Wp,-MD,drivers/isdn/capi/.capi.o.d -nostdinc -isystem
/home/dcb/gcc/20080314/results/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/include
-D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Os -mtune=generic -m64 -mno-red-zone
-mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables
-funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-maccumulate-outgoing-args
-DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -fstack-protector
-fstack-protector-all -fno-omit-frame-pointer -fno-optimize-sibling-calls -g
-fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(capi)"
-D"KBUILD_MODNAME=KBUILD_STR(capi)" -c -o drivers/isdn/capi/.tmp_capi.o
drivers/isdn/capi/capi.c
drivers/isdn/capi/capi.c: In function 'capi_open':
drivers/isdn/capi/capi.c:985: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Preprocessed source code attached. Flag -Os required
Here is some additional help from valgrind
==12946== Invalid read of size 4
==12946== at 0x7E6BE3: bitmap_find_leader (tree-ssa-pre.c:1434)
==12946== by 0x7ECF15: find_or_generate_expression (tree-ssa-pre.c:2254)
==12946== by 0x7EC309: create_expression_by_pieces (tree-ssa-pre.c:2398)
==12946== by 0x7EDE50: eliminate (tree-ssa-pre.c:3596)
==12946== by 0x7F02B5: execute_pre (tree-ssa-pre.c:3980)
==12946== by 0x7F08FD: execute_fre (tree-ssa-pre.c:4043)
==12946== by 0x64FF46: execute_one_pass (passes.c:1123)
==12946== by 0x65011F: execute_pass_list (passes.c:1176)
==12946== by 0x650134: execute_pass_list (passes.c:1177)
==12946== by 0x736EC5: tree_rest_of_compilation (tree-optimize.c:404)
==12946== by 0x8E2591: cgraph_expand_function (cgraphunit.c:1157)
==12946== by 0x8E4F23: cgraph_optimize (cgraphunit.c:1220)
==12946== Address 0x58 is not stack'd, malloc'd or (recently) free'd
--
Summary: ice for legal kernel code with new snapshot
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
GCC host triplet: x86_64-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35600