http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50812
Bug #: 50812
Summary: libbid build fails with ICE on bid128_div.c
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: build, ice-on-valid-code
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: [email protected]
ReportedBy: [email protected]
Host: x86_64-apple-darwin11
Target: i586-pc-mingw32
Build: x86_64-apple-darwin11
Created attachment 25561
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25561
Preprocessed source triggering the ICE
Building a cross-compiler to i586-pc-mingw32 fails with an ICE while compiling
libgcc, or more precisely, libbid's bid128_div.c:
../../../../gcc/trunk/libgcc/config/libbid/bid128_div.c:1851:1: internal
compiler error: in inline_small_functions, at ipa-inline.c:1407
The cross-compiler is configured with: ../../gcc/trunk/configure
--prefix=/Users/fx/devel/mingw/cross --target=i586-pc-mingw32 --disable-werror
--with-gmp=/Users/fx/devel/gcc/deps-static/x86_64 --enable-languages=c,fortran
The backtrace of the ICE is:
#0 fancy_abort (file=0x100aae258 "../../../gcc/trunk/gcc/ipa-inline.c",
line=1407, function=0x100aae9a0 "inline_small_functions") at diagnostic.c:897
#1 0x000000010056dd1a in ipa_inline () at ipa-inline.c:1407
#2 0x0000000100617f17 in execute_one_pass (pass=0x100aae258) at passes.c:2064
#3 0x0000000100618a7c in execute_ipa_pass_list (pass=0x100aae258) at
passes.c:2431
#4 0x000000010035f89c in ipa_passes [inlined] () at
/Users/fx/devel/gcc/trunk/gcc/cgraphunit.c:2061
#5 0x000000010035f89c in cgraph_optimize () at cgraphunit.c:2116
#6 0x000000010036099f in cgraph_finalize_compilation_unit () at
cgraphunit.c:1312
#7 0x00000001000157d8 in c_write_global_declarations () at c-decl.c:9940
#8 0x00000001006db701 in do_compile [inlined] () at
/Users/fx/devel/gcc/trunk/gcc/toplev.c:581
I attach the preprocessed source. The bug is triggered consistently at -O1 and
higher optimization. It can be reproduced simply with "cc1 -O bid128_div.i"