https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78211
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-valid-code |lto Status|UNCONFIRMED |NEW Last reconfirmed| |2016-11-07 Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Are you sure -fcompare-debug does sth sensible with -flto? With -fno-use-linker-plugin you are turning on -ffat-lto-objects and thus you end up emitting anything in the first place but you are comparing the fat part of the LTO objects. Difference: --- t.gk.gkd 2016-11-07 09:51:53.028517152 +0100 +++ t.gkd 2016-11-07 09:51:52.940516156 +0100 @@ -1,6 +1,6 @@ -;; Function VwViewer::FindViewPlane(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (_ZN8VwViewer13FindViewPlaneERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, funcdef_no=21, cgraph_uid=1, symbol_order=1) +;; Function VwViewer::FindViewPlane(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (_ZN8VwViewer13FindViewPlaneERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, funcdef_no=19, cgraph_uid=1, symbol_order=1) (note # 0 0 NOTE_INSN_DELETED) (note # 0 0 [bb 2] NOTE_INSN_BASIC_BLOCK) @@ -51,7 +51,7 @@ 2: struct VwAssimilator_2D D.xxxx; 1: struct VwAssimilator_2D_Geometry D.xxxx; -;; Function VwViewer_2D::drawStickyBox() (_ZN11VwViewer_2D13drawStickyBoxEv, funcdef_no=19, cgraph_uid=3, symbol_order=3) +;; Function VwViewer_2D::drawStickyBox() (_ZN11VwViewer_2D13drawStickyBoxEv, funcdef_no=21, cgraph_uid=3, symbol_order=3) (note # 0 0 NOTE_INSN_DELETED) (note # 0 0 [bb 2] NOTE_INSN_BASIC_BLOCK) ymbol_order=3) so funcdef_no "swaps".