https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80423

            Bug ID: 80423
           Summary: [7 Regression] GC related -fcompare-debug failure
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
  Target Milestone: ---

trippels@gcc2-power8 llvm_build % GCC_COMPARE_DEBUG=1
/home/trippels/gcc_7/usr/local/bin/g++ --param ggc-min-expand=30 --param
ggc-min-heapsize=2000 -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_GLOBAL_ISEL -D_DEBUG
-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -Ilib/ProfileData -I/home/trippels/llvm/lib/ProfileData
-Iinclude -I/home/trippels/llvm/include -fPIC -fvisibility-inlines-hidden
-Werror=date-time -std=c++11 -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
-ffunction-sections -fdata-sections -Wno-implicit-fallthrough -O3 -pipe
-UNDEBUG -fno-exceptions -fno-rtti -MD -MT
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfReader.cpp.o -MF
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfReader.cpp.o.d -o
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfReader.cpp.o -c
/home/trippels/llvm/lib/ProfileData/SampleProfReader.cpp                        

g++: error: /home/trippels/llvm/lib/ProfileData/SampleProfReader.cpp:
-fcompare-debug failure (length)

Doesn't happen for gcc-6. 
Unfortunately the issue goes away if I add --save-temps, so I'm not sure how to
debug this any further.

Reply via email to