Bug 70679 - [6 Regression] -fcompare-debug building LLVM with checking=release compiler
Summary: [6 Regression] -fcompare-debug building LLVM with checking=release compiler
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 6.0
: P3 normal
Target Milestone: 6.0
Assignee: Not yet assigned to anyone
URL:
Keywords: compare-debug-failure
Depends on:
Blocks:
 
Reported: 2016-04-15 09:34 UTC by Markus Trippelsdorf
Modified: 2022-01-18 23:30 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Trippelsdorf 2016-04-15 09:34:03 UTC
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.
Comment 1 Richard Biener 2016-04-15 10:00:03 UTC
Can you see if the fix in PR70675 works?  That is, is this a dup?  Does
reducing GC params make it reproduce with the .ii file?
Comment 2 Markus Trippelsdorf 2016-04-15 10:10:20 UTC
(In reply to Richard Biener from comment #1)
> Can you see if the fix in PR70675 works?  That is, is this a dup?  

Unfortunately no.

> Does reducing GC params make it reproduce with the .ii file?

--param ggc-min-expand=5 --param ggc-min-heapsize=5  doesn't help.
Comment 3 Markus Trippelsdorf 2016-04-15 10:19:52 UTC
Sorry this is a bogus bug.

CommandLine.cpp contains:

std::cout << "  Built " << __DATE__ << " (" << __TIME__ << ").\n" 

So this is simply the __TIME__ difference...