public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/50490] New: ICE when compiling libglib2.0 with LTO
@ 2011-09-22 22:34 matt at use dot net
2011-11-19 15:21 ` [Bug lto/50490] ICE when compiling libglib2.0 with LTO, tree code 'optimization_node' is not supported in LTO streams reichelt at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: matt at use dot net @ 2011-09-22 22:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50490
Bug #: 50490
Summary: ICE when compiling libglib2.0 with LTO
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: matt@use.net
Created attachment 25345
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25345
pre-processed source of the file that triggers the ICE
with trunk revision 178863:
"
gcc -O2 -flto -c mem-overflow.i
/home/matt/src/glib2.0-2.29.92/./glib/tests/mem-overflow.c:137:1: internal
compiler error: tree code 'optimization_node' is not supported in LTO streams
"
changing the -O2 to -O1 eliminates the ICE. valgrind shows nothing out of the
ordinary.
pre-processed file mentioned in the commandline above is attached.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/50490] ICE when compiling libglib2.0 with LTO, tree code 'optimization_node' is not supported in LTO streams
2011-09-22 22:34 [Bug lto/50490] New: ICE when compiling libglib2.0 with LTO matt at use dot net
@ 2011-11-19 15:21 ` reichelt at gcc dot gnu.org
2012-01-05 15:00 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu.org @ 2011-11-19 15:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50490
Volker Reichelt <reichelt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-11-19
CC| |reichelt at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Volker Reichelt <reichelt at gcc dot gnu.org> 2011-11-19 14:37:32 UTC ---
I ran into the same issue.
Here's a reduced testcase that triggers the ICE when compiled with "-flto":
=============================================
__attribute__((optimize(1))) void foo() {}
=============================================
bug.c:1:1: internal compiler error: tree code 'optimization_node' is not
supported in LTO streams
Please submit a full bug report, [etc.]
This only happens on trunk, before I get:
bug.c:1:1: sorry, unimplemented: gimple bytecode streams do not support the
optimization attribute
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/50490] ICE when compiling libglib2.0 with LTO, tree code 'optimization_node' is not supported in LTO streams
2011-09-22 22:34 [Bug lto/50490] New: ICE when compiling libglib2.0 with LTO matt at use dot net
2011-11-19 15:21 ` [Bug lto/50490] ICE when compiling libglib2.0 with LTO, tree code 'optimization_node' is not supported in LTO streams reichelt at gcc dot gnu.org
@ 2012-01-05 15:00 ` rguenth at gcc dot gnu.org
2012-01-05 15:44 ` rguenth at gcc dot gnu.org
2012-01-07 11:03 ` reichelt at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-05 15:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50490
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-05 14:59:29 UTC ---
I have a patch.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/50490] ICE when compiling libglib2.0 with LTO, tree code 'optimization_node' is not supported in LTO streams
2011-09-22 22:34 [Bug lto/50490] New: ICE when compiling libglib2.0 with LTO matt at use dot net
2011-11-19 15:21 ` [Bug lto/50490] ICE when compiling libglib2.0 with LTO, tree code 'optimization_node' is not supported in LTO streams reichelt at gcc dot gnu.org
2012-01-05 15:00 ` rguenth at gcc dot gnu.org
@ 2012-01-05 15:44 ` rguenth at gcc dot gnu.org
2012-01-07 11:03 ` reichelt at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-05 15:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50490
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-05 15:44:01 UTC ---
Author: rguenth
Date: Thu Jan 5 15:43:54 2012
New Revision: 182917
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182917
Log:
2012-01-05 Richard Guenther <rguenther@suse.de>
PR lto/50490
* tree-streamer-out.c (write_ts_optimization): New function.
(streamer_write_tree_body): Call it.
* tree-streamer-in.c (lto_input_ts_optimization): New function.
(streamer_read_tree_body): Call it.
* lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/lto-streamer-out.c
trunk/gcc/tree-streamer-in.c
trunk/gcc/tree-streamer-out.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/50490] ICE when compiling libglib2.0 with LTO, tree code 'optimization_node' is not supported in LTO streams
2011-09-22 22:34 [Bug lto/50490] New: ICE when compiling libglib2.0 with LTO matt at use dot net
` (2 preceding siblings ...)
2012-01-05 15:44 ` rguenth at gcc dot gnu.org
@ 2012-01-07 11:03 ` reichelt at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu.org @ 2012-01-07 11:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50490
Volker Reichelt <reichelt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #4 from Volker Reichelt <reichelt at gcc dot gnu.org> 2012-01-07 11:02:54 UTC ---
Fixed by Richard's patch.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-01-07 11:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-22 22:34 [Bug lto/50490] New: ICE when compiling libglib2.0 with LTO matt at use dot net
2011-11-19 15:21 ` [Bug lto/50490] ICE when compiling libglib2.0 with LTO, tree code 'optimization_node' is not supported in LTO streams reichelt at gcc dot gnu.org
2012-01-05 15:00 ` rguenth at gcc dot gnu.org
2012-01-05 15:44 ` rguenth at gcc dot gnu.org
2012-01-07 11:03 ` reichelt 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).