aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-in.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-11-19 11:57:21 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-11-19 11:57:21 +0000
commit132797449d4ad43ec9550eb0f000816d3d04c215 (patch)
tree172a07382aa5884a300aa67fe0410db99b9a8983 /gcc/lto-streamer-in.c
parent0d697034b7eecde30bc95766237f2c3b105abaf0 (diff)
downloadgcc-132797449d4ad43ec9550eb0f000816d3d04c215.zip
gcc-132797449d4ad43ec9550eb0f000816d3d04c215.tar.gz
gcc-132797449d4ad43ec9550eb0f000816d3d04c215.tar.bz2
re PR lto/45789 (ICE: tree code 'lang_type' is not supported in gimple streams with -flto when using __builtin_printf())
2010-11-19 Richard Guenther <rguenther@suse.de> PR lto/45789 * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For IDENTIFIERs do not stream TREE_TYPE. * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise. From-SVN: r166936
Diffstat (limited to 'gcc/lto-streamer-in.c')
-rw-r--r--gcc/lto-streamer-in.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c
index 50352e8..cf1b011 100644
--- a/gcc/lto-streamer-in.c
+++ b/gcc/lto-streamer-in.c
@@ -1874,7 +1874,8 @@ static void
lto_input_ts_common_tree_pointers (struct lto_input_block *ib,
struct data_in *data_in, tree expr)
{
- TREE_TYPE (expr) = lto_input_tree (ib, data_in);
+ if (TREE_CODE (expr) != IDENTIFIER_NODE)
+ TREE_TYPE (expr) = lto_input_tree (ib, data_in);
}