aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/tree-streamer-in.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/tree-streamer-in.c')
-rw-r--r--gcc-4.9/gcc/tree-streamer-in.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/tree-streamer-in.c b/gcc-4.9/gcc/tree-streamer-in.c
index b02bb6bd0..1839f579e 100644
--- a/gcc-4.9/gcc/tree-streamer-in.c
+++ b/gcc-4.9/gcc/tree-streamer-in.c
@@ -167,6 +167,9 @@ unpack_ts_real_cst_value_fields (struct bitpack_d *bp, tree expr)
REAL_VALUE_TYPE r;
REAL_VALUE_TYPE *rp;
+ /* Clear all bits of the real value type so that we can later do
+ bitwise comparisons to see if two values are the same. */
+ memset (&r, 0, sizeof r);
r.cl = (unsigned) bp_unpack_value (bp, 2);
r.decimal = (unsigned) bp_unpack_value (bp, 1);
r.sign = (unsigned) bp_unpack_value (bp, 1);