summaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-out.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-19 11:57:21 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-19 11:57:21 +0000
commitf87aeb3acdf291352ec0619c965cacb18fbddc59 (patch)
tree172a07382aa5884a300aa67fe0410db99b9a8983 /gcc/lto-streamer-out.c
parentbd3e12e508fc31027dbeff5350d088cb8962925b (diff)
downloadgcc-f87aeb3acdf291352ec0619c965cacb18fbddc59.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166936 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r--gcc/lto-streamer-out.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index 2a4d985c9b9..20e39913044 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -793,7 +793,8 @@ static void
lto_output_ts_common_tree_pointers (struct output_block *ob, tree expr,
bool ref_p)
{
- lto_output_tree_or_ref (ob, TREE_TYPE (expr), ref_p);
+ if (TREE_CODE (expr) != IDENTIFIER_NODE)
+ lto_output_tree_or_ref (ob, TREE_TYPE (expr), ref_p);
}