aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-out.c
diff options
context:
space:
mode:
authorSofiane Naci <sofiane.naci@arm.com>2012-10-22 12:28:14 +0000
committerSofiane Naci <sofiane.naci@arm.com>2012-10-22 12:28:14 +0000
commit369b71ecad513571a31ed3989a33629404847832 (patch)
tree77fa03ebcefe174abeaef371e7fb332b2d928284 /gcc/lto-streamer-out.c
parent2b86be5b85981f0186dc90c8726e5a86abd99b4b (diff)
parentfe41acb87a4145f35518841c7d83cb8f88dc5d9e (diff)
Merge from trunk 192445:192598.ARM/aarch64-branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ARM/aarch64-branch@192688 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r--gcc/lto-streamer-out.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index 55a20dd134b..806045b52bf 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -372,9 +372,10 @@ lto_output_tree (struct output_block *ob, tree expr,
return;
}
- /* INTEGER_CST nodes are special because they need their original type
+ /* Shared INTEGER_CST nodes are special because they need their original type
to be materialized by the reader (to implement TYPE_CACHED_VALUES). */
- if (TREE_CODE (expr) == INTEGER_CST)
+ if (TREE_CODE (expr) == INTEGER_CST
+ && !TREE_OVERFLOW (expr))
{
streamer_write_integer_cst (ob, expr, ref_p);
return;