http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53682
Bug #: 53682 Summary: [4.7/4.8 Regression] ICE in cselib_lookup (SEGV) on i586-linux-gnu Classification: Unclassified Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: d...@gcc.gnu.org Created attachment 27625 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27625 test case works with 4.6 branch, fails with 4.7.1 on i586-linux-gnu, works on x86_64-linux-gnu. omitting one of the -fPIC, -fvisibility=hidden, -funroll-loops options avoids the ice. $ gcc -c -g -O2 -fPIC -fvisibility=hidden -funroll-loops mini_q_math.c mini_q_math.c: In function 'ByteToDir': mini_q_math.c:124:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. Program received signal SIGSEGV, Segmentation fault. 0x081e657b in cselib_lookup(rtx_def*, machine_mode, int, machine_mode) () (gdb) bt #0 0x081e657b in cselib_lookup(rtx_def*, machine_mode, int, machine_mode) () #1 0x081e7034 in ?? () #2 0x08590da2 in ?? () #3 0x085a8680 in ?? () #4 0x08189983 in find_base_term(rtx_def*) () #5 0x08189a28 in find_base_term(rtx_def*) () #6 0x08189b69 in find_base_term(rtx_def*) () #7 0x0818b3e8 in ?? () #8 0x081e7820 in ?? () #9 0x081e88f7 in ?? () #10 0x081e9183 in cselib_process_insn(rtx_def*) () #11 0x0856c723 in ?? () #12 0x0857323c in variable_tracking_main() () #13 0x0836e2bc in execute_one_pass(opt_pass*) () #14 0x0836e615 in execute_pass_list(opt_pass*) () #15 0x0836e628 in execute_pass_list(opt_pass*) () #16 0x0836e628 in execute_pass_list(opt_pass*) () #17 0x0844d434 in tree_rest_of_compilation(tree_node*) () #18 0x081dd654 in ?? () #19 0x081deeb5 in cgraph_optimize() () #20 0x081df3ef in cgraph_finalize_compilation_unit() () #21 0x081185fc in c_write_global_declarations() () #22 0x0840661a in toplev_main(int, char**) () #23 0x0810712b in main ()