lowering to -O1 works around it. r197184 does work, r197476 not.
$ gcc -c -g -O2 perf_event.i arch/x86/kernel/cpu/perf_event.c: In function 'get_segment_base':
arch/x86/kernel/cpu/perf_event.c:1887:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
(gdb) bt
#0 0x0000000000bd312d in ?? ()
#1 0x0000000000bd305e in ?? ()
#2 0x0000000000bd2c6b in ?? ()
#3 0x0000000000bd357d in ?? ()
#4 0x0000000000bd51b0 in deps_analyze_insn(deps_desc*, rtx_def*) ()
#5 0x0000000000bd5603 in sched_analyze(deps_desc*, rtx_def*, rtx_def*) ()
#6 0x0000000000760d12 in sched_rgn_compute_dependencies(int) ()
#7 0x00000000007635f2 in schedule_insns() ()
#8 0x0000000000763a41 in ?? ()
#9 0x000000000070b778 in execute_one_pass(opt_pass*) ()
#10 0x000000000070bad5 in execute_pass_list(opt_pass*) ()
#11 0x000000000070bae7 in execute_pass_list(opt_pass*) ()
#12 0x000000000070bae7 in execute_pass_list(opt_pass*) ()
#13 0x00000000007e5439 in tree_rest_of_compilation(tree_node*) ()
#14 0x0000000000592afa in ?? ()
#15 0x000000000059434c in cgraph_optimize() ()
#16 0x00000000005947fa in cgraph_finalize_compilation_unit() ()
#17 0x00000000004d44e8 in c_write_global_declarations() ()
#18 0x000000000079edce in toplev_main(int, char**) ()
#19 0x00007ffff670dea5 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#20 0x00000000004c3351 in _start ()
Created attachment 29808
preprocessed source
lowering to -O1 works around it. r197184 does work, r197476 not.
$ gcc -c -g -O2 perf_event.i arch/x86/ kernel/ cpu/perf_ event.c: In function 'get_segment_base': kernel/ cpu/perf_ event.c: 1887:1: internal compiler error: Segmentation fault
arch/x86/
Please submit a full bug report,
with preprocessed source if appropriate.
(gdb) bt insn(deps_ desc*, rtx_def*) () deps_desc* , rtx_def*, rtx_def*) () compute_ dependencies( int) () one_pass( opt_pass* ) () pass_list( opt_pass* ) () pass_list( opt_pass* ) () pass_list( opt_pass* ) () of_compilation( tree_node* ) () finalize_ compilation_ unit() () global_ declarations( ) () 64-linux- gnu/libc. so.6
#0 0x0000000000bd312d in ?? ()
#1 0x0000000000bd305e in ?? ()
#2 0x0000000000bd2c6b in ?? ()
#3 0x0000000000bd357d in ?? ()
#4 0x0000000000bd51b0 in deps_analyze_
#5 0x0000000000bd5603 in sched_analyze(
#6 0x0000000000760d12 in sched_rgn_
#7 0x00000000007635f2 in schedule_insns() ()
#8 0x0000000000763a41 in ?? ()
#9 0x000000000070b778 in execute_
#10 0x000000000070bad5 in execute_
#11 0x000000000070bae7 in execute_
#12 0x000000000070bae7 in execute_
#13 0x00000000007e5439 in tree_rest_
#14 0x0000000000592afa in ?? ()
#15 0x000000000059434c in cgraph_optimize() ()
#16 0x00000000005947fa in cgraph_
#17 0x00000000004d44e8 in c_write_
#18 0x000000000079edce in toplev_main(int, char**) ()
#19 0x00007ffff670dea5 in __libc_start_main () from /lib/x86_
#20 0x00000000004c3351 in _start ()