aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-out.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-01-05 15:43:54 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-01-05 15:43:54 +0000
commit10d12a3eebd9ea1022ed56131ed80ab7b67aaa88 (patch)
treef5f2a9f356b5b265ba6c2695f02cd6f9104bdf17 /gcc/lto-streamer-out.c
parentc4207e25d3dbf08af6d20a304ea853392c5fcac3 (diff)
downloadgcc-10d12a3eebd9ea1022ed56131ed80ab7b67aaa88.zip
gcc-10d12a3eebd9ea1022ed56131ed80ab7b67aaa88.tar.gz
gcc-10d12a3eebd9ea1022ed56131ed80ab7b67aaa88.tar.bz2
re PR lto/50490 (ICE when compiling libglib2.0 with LTO, tree code 'optimization_node' is not supported in LTO streams)
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. From-SVN: r182917
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r--gcc/lto-streamer-out.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index 4b3be3b..054bb85 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -304,7 +304,6 @@ lto_is_streamable (tree expr)
&& code != WITH_CLEANUP_EXPR
&& code != STATEMENT_LIST
&& code != OMP_CLAUSE
- && code != OPTIMIZATION_NODE
&& (code == CASE_LABEL_EXPR
|| code == DECL_EXPR
|| TREE_CODE_CLASS (code) != tcc_statement);