http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51280
Bug #: 51280
Summary: ICE when lto1 does not have -fgnu-tm and object file
uses TM
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
LTO should display a error message to indicate that gnu-tm is not enabled and
not ICE.
lto1: internal compiler error: in streamer_get_builtin_tree, at
tree-streamer-in.c:1056
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
1051 if (fclass == BUILT_IN_NORMAL)
1052 {
1053 if (fcode >= END_BUILTINS)
1054 fatal_error ("machine independent builtin code out of range");
1055 result = builtin_decl_explicit (fcode);
1056 gcc_assert (result);
1057 }
(gdb) p fcode
$2 = BUILT_IN_TM_COMMIT
(gdb) bt
#0 fancy_abort (file=0x12b2168 "../../trunk/gcc/tree-streamer-in.c",
line=1056, function=0x12b2250 "streamer_get_builtin_tree")
at ../../trunk/gcc/diagnostic.c:899
#1 0x0000000000c4f5ea in streamer_get_builtin_tree (ib=0x7fffffffd760,
data_in=0x1a273d0) at ../../trunk/gcc/tree-streamer-in.c:1056
#2 0x00000000008b5aeb in lto_input_tree (ib=0x7fffffffd760, data_in=0x1a273d0)
at ../../trunk/gcc/lto-streamer-in.c:1148
#3 0x00000000004b052a in lto_read_decls (decl_data=0x7ffff69b9000,
data=0x1a36970, resolutions=0x1a26320) at ../../trunk/gcc/lto/lto.c:902
#4 0x00000000004b0e25 in lto_file_finalize (file_data=0x7ffff69b9000,
file=0x19944a0) at ../../trunk/gcc/lto/lto.c:1140
#5 0x00000000004b0e72 in lto_create_files_from_ids (file=0x19944a0,
file_data=0x7ffff69b9000, count=0x7fffffffd8ec) at
../../trunk/gcc/lto/lto.c:1150
#6 0x00000000004b0f8b in lto_file_read (file=0x19944a0,
resolution_file=0x1a25460, count=0x7fffffffd8ec) at
../../trunk/gcc/lto/lto.c:1190
#7 0x00000000004b8095 in read_cgraph_and_symbols (nfiles=1, fnames=0x19af0f0)
at ../../trunk/gcc/lto/lto.c:2591
#8 0x00000000004b87da in lto_main () at ../../trunk/gcc/lto/lto.c:2905
#9 0x00000000009ffe99 in compile_file () at ../../trunk/gcc/toplev.c:565
#10 0x0000000000a021a9 in do_compile () at ../../trunk/gcc/toplev.c:1931
#11 0x0000000000a02314 in toplev_main (argc=17, argv=0x197d2e0) at
../../trunk/gcc/toplev.c:2007
#12 0x00000000004bb7c4 in main (argc=17, argv=0x7fffffffda68) at
../../trunk/gcc/main.c:36
To reproduce, compile file with transactions and lto, and link without -flto.
Patrick.