https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70679
Bug ID: 70679
Summary: [6 Regression] -fcompare-debug building LLVM with
checking=release compiler
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: trippels at gcc dot gnu.org
Target Milestone: ---
trippels@gcc2-power8 llvm_build % g++ --save-temps -fcompare-debug
-DGTEST_HAS_RTTI=0 -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden
-Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -std=c++11 -O2
-pipe -mlra -Ilib/Support -I/home/trippels/llvm/lib/Support -Iinclude
-I/home/trippels/llvm/include -UNDEBUG -fno-exceptions -fno-rtti -MMD -MT
lib/Support/CMakeFiles/LLVMSupport.dir/CommandLine.cpp.o -MF
lib/Support/CMakeFiles/LLVMSupport.dir/CommandLine.cpp.o.d -o
lib/Support/CMakeFiles/LLVMSupport.dir/CommandLine.cpp.o -c
/home/trippels/llvm/lib/Support/CommandLine.cpp
g++: warning: -pipe ignored because -save-temps specified
g++: error: /home/trippels/llvm/lib/Support/CommandLine.cpp: -fcompare-debug
failure
trippels@gcc2-power8 llvm_build % diff -u CommandLine.gkd CommandLine.gk.gkd
--- CommandLine.gkd 2016-04-15 09:31:13.246179530 +0000
+++ CommandLine.gk.gkd 2016-04-15 09:31:16.646253990 +0000
@@ -24217,8 +24217,8 @@
(code_label # 0 0 868 "" [1 uses])
(note # 0 0 [bb 13] NOTE_INSN_BASIC_BLOCK)
(insn:TI # 0 0 (set (reg:DI 9 9 [368])
- (const_int 808517632 [0x30310000]))
/home/trippels/llvm/include/llvm/Support/raw_ostream.h:169# {*movdi_internal64}
- (expr_list:REG_EQUAL (const_int 808517632 [0x30310000])
+ (const_int 858849280 [0x33310000]))
/home/trippels/llvm/include/llvm/Support/raw_ostream.h:169# {*movdi_internal64}
+ (expr_list:REG_EQUAL (const_int 858849280 [0x33310000])
(nil)))
(insn # 0 0 (set (reg:DI 9 9 [368])
(ior:DI (reg:DI 9 9 [368])
@@ -24235,7 +24235,7 @@
(insn # 0 0 (set (reg:DI 9 9 [317])
(ior:DI (reg:DI 9 9 [368])
(const_int 14640 [0x3930])))
/home/trippels/llvm/include/llvm/Support/raw_ostream.h:169# {*booldi3_imm}
- (expr_list:REG_EQUIV (const_int 3472620770666625328 [0x30313a31333a3930])
+ (expr_list:REG_EQUIV (const_int 3688793552780409136 [0x33313a31333a3930])
(nil)))
(insn # 0 0 (set (mem:DI (reg/f:DI 10 10 [orig:176 prephitmp_70 ] [176]) [
MEM[(void *)prephitmp_70]+0 S8 A8])
(reg:DI 9 9 [317]))
/home/trippels/llvm/include/llvm/Support/raw_ostream.h:169# {*movdi_internal64}
Unfortunately it doesn't fail on the CommandLine.ii file.