public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/65316] New: [5 Regression] LTO: Uninitialized memory / ICE with -g -fno-lto-odr-type-merging: in types_same_for_odr, at ipa-devirt.c:465
@ 2015-03-04 18:54 burnus at gcc dot gnu.org
  2015-03-04 19:47 ` [Bug lto/65316] " trippels at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: burnus at gcc dot gnu.org @ 2015-03-04 18:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65316
           Summary: [5 Regression] LTO: Uninitialized memory / ICE with -g
                    -fno-lto-odr-type-merging: in types_same_for_odr, at
                    ipa-devirt.c:465
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: hubicka at gcc dot gnu.org

Created attachment 34954
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34954&action=edit
one.ii

Follow up to PR65276 and PR65302.

It turned out that is issue is due to uninitialized memory. Thus, if the last
command succeeds, simply try again a couple of times (in delta, I called it up
to 25 times) - or run it under valgrind or similar.

It fails with the ICE:

lto1: internal compiler error: in types_same_for_odr, at ipa-devirt.c:465


touch two.ii
g++ -c -std=c++11 -g2 -fno-lto-odr-type-merging -flto -O2 two.ii one.ii
gcc -r -nostdlib -O2 -fno-lto-odr-type-merging -flto one.o two.o


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-03-09  1:40 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-04 18:54 [Bug lto/65316] New: [5 Regression] LTO: Uninitialized memory / ICE with -g -fno-lto-odr-type-merging: in types_same_for_odr, at ipa-devirt.c:465 burnus at gcc dot gnu.org
2015-03-04 19:47 ` [Bug lto/65316] " trippels at gcc dot gnu.org
2015-03-05  0:01 ` hubicka at gcc dot gnu.org
2015-03-05  9:20 ` rguenth at gcc dot gnu.org
2015-03-06  6:02 ` hubicka at gcc dot gnu.org
2015-03-06  9:30 ` burnus at gcc dot gnu.org
2015-03-06  9:34 ` trippels at gcc dot gnu.org
2015-03-06 16:02 ` hubicka at gcc dot gnu.org
2015-03-06 18:25 ` hubicka at gcc dot gnu.org
2015-03-06 23:31 ` hubicka at ucw dot cz
2015-03-07 18:40 ` hubicka at gcc dot gnu.org
2015-03-07 20:34 ` hubicka at gcc dot gnu.org
2015-03-09  0:29 ` hubicka at gcc dot gnu.org
2015-03-09  1:40 ` hubicka at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).