https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80444
Bug ID: 80444 Summary: -fcompare-debug failures with -fsanitize-coverage=trace-pc Product: gcc Version: 7.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org Target Milestone: --- % cat system_keyring.i void foo() { int a = 0; } % gcc --save-temps -fcompare-debug -O2 -fsanitize-coverage=trace-pc -c system_keyring.i gcc: error: system_keyring.i: -fcompare-debug failure % diff -u system_keyring.gkd system_keyring.gk.gkd --- system_keyring.gkd 2017-04-17 12:07:15.192708236 +0200 +++ system_keyring.gk.gkd 2017-04-17 12:07:15.216708050 +0200 @@ -9,7 +9,7 @@ (note # 0 0 NOTE_INSN_PROLOGUE_END) (note # 0 0 NOTE_INSN_FUNCTION_BEG) (call_insn/j:TI # 0 0 2 (call (mem:QI (symbol_ref:DI ("__sanitizer_cov_trace_pc") [flags 0x41] <function_decl # __builtin___sanitizer_cov_trace_pc>) [ __builtin___sanitizer_cov_trace_pc S1 A8]) - (const_int 0 [0])) "system_keyring.i":3# {*sibcall} + (const_int 0 [0])) "system_keyring.i":2# {*sibcall} (expr_list:REG_CALL_DECL (symbol_ref:DI ("__sanitizer_cov_trace_pc") [flags 0x41] <function_decl # __builtin___sanitizer_cov_trace_pc>) (expr_list:REG_EH_REGION (const_int 0 [0]) (nil)))