public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/54856] New: Corrupted LTO type merging
@ 2012-10-08 14:16 hubicka at gcc dot gnu.org
  2012-10-08 14:17 ` [Bug lto/54856] " hubicka at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hubicka at gcc dot gnu.org @ 2012-10-08 14:16 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54856

             Bug #: 54856
           Summary: Corrupted LTO type merging
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hubicka@gcc.gnu.org


Created attachment 28385
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28385
patch to trigger the ice

Hi,
with the patch attached that adds double check that when types are equivalent
their argument types are equivalent, too. The GCC fails to compile sqlite:

jan@linux-e0ml:~/trunk/build/gcc> ./xgcc -B ./ -flto=24  -r -nostdlib
-fno-fat-lto-objects -fPIC -pedantic -fno-strict-aliasing -ffunction-sections
-fdata-sections -pthread -O3 -fomit-frame-pointer sqlite3.i 
/abuild/jh/mozilla-central2/mozilla-central/db/sqlite3/src/sqlite3.c:819:16:
warning: ISO C90 does not support ‘long long’ [-Wlong-long]
/abuild/jh/mozilla-central2/mozilla-central/db/sqlite3/src/sqlite3.c:820:26:
warning: ISO C90 does not support ‘long long’ [-Wlong-long]
^A^Plto1: internal compiler error: in uniquify_nodes, at lto/lto.c:1971
0x51a5ac uniquify_nodes
        ../../gcc/lto/lto.c:1970
0x51ac0b lto_read_decls
        ../../gcc/lto/lto.c:2069
0x51b49b lto_file_finalize
        ../../gcc/lto/lto.c:2322
0x51b4e8 lto_create_files_from_ids
        ../../gcc/lto/lto.c:2332
0x51b60c lto_file_read
        ../../gcc/lto/lto.c:2372
0x51e07d read_cgraph_and_symbols
        ../../gcc/lto/lto.c:2939
0x51ec1a lto_main()
        ../../gcc/lto/lto.c:3344
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [/tmp/cchAJFdX.ltrans6.ltrans.o] Error 1
make: *** Waiting for unfinished jobs....
lto-wrapper: make returned 2 exit status
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
lto-wrapper failed
collect2: error: ld returned 1 exit status


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

* [Bug lto/54856] Corrupted LTO type merging
  2012-10-08 14:16 [Bug lto/54856] New: Corrupted LTO type merging hubicka at gcc dot gnu.org
@ 2012-10-08 14:17 ` hubicka at gcc dot gnu.org
  2012-10-08 14:26 ` hubicka at gcc dot gnu.org
  2012-10-09  9:40 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: hubicka at gcc dot gnu.org @ 2012-10-08 14:17 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54856

--- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-10-08 14:17:32 UTC ---
Created attachment 28386
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28386
preprocessed sqlite.


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

* [Bug lto/54856] Corrupted LTO type merging
  2012-10-08 14:16 [Bug lto/54856] New: Corrupted LTO type merging hubicka at gcc dot gnu.org
  2012-10-08 14:17 ` [Bug lto/54856] " hubicka at gcc dot gnu.org
@ 2012-10-08 14:26 ` hubicka at gcc dot gnu.org
  2012-10-09  9:40 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: hubicka at gcc dot gnu.org @ 2012-10-08 14:26 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54856

--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-10-08 14:25:37 UTC ---
Created attachment 28387
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28387
My experiemnts with fixup


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

* [Bug lto/54856] Corrupted LTO type merging
  2012-10-08 14:16 [Bug lto/54856] New: Corrupted LTO type merging hubicka at gcc dot gnu.org
  2012-10-08 14:17 ` [Bug lto/54856] " hubicka at gcc dot gnu.org
  2012-10-08 14:26 ` hubicka at gcc dot gnu.org
@ 2012-10-09  9:40 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-09  9:40 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54856

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-10-09
                 CC|                            |rguenth at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-10-09 09:40:07 UTC ---
Which revision was that with?  Doesn't seem to reproduce for me.


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

end of thread, other threads:[~2012-10-09  9:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-08 14:16 [Bug lto/54856] New: Corrupted LTO type merging hubicka at gcc dot gnu.org
2012-10-08 14:17 ` [Bug lto/54856] " hubicka at gcc dot gnu.org
2012-10-08 14:26 ` hubicka at gcc dot gnu.org
2012-10-09  9:40 ` rguenth 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).