diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-05-22 09:59:32 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-05-22 09:59:32 +0200 |
commit | a822564db5c2745e4ea1394cd33aa2079baaec8d (patch) | |
tree | 99874eff93213cb740317568554938f65e179ed2 /gcc | |
parent | 4960a0cb385939bfebf5fb158d60a200d1c3e19e (diff) | |
download | gcc-a822564db5c2745e4ea1394cd33aa2079baaec8d.zip gcc-a822564db5c2745e4ea1394cd33aa2079baaec8d.tar.gz gcc-a822564db5c2745e4ea1394cd33aa2079baaec8d.tar.bz2 |
tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure all padding bits in REAL_VALUE_TYPE are cleared.
* tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
all padding bits in REAL_VALUE_TYPE are cleared.
From-SVN: r210748
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-streamer-in.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c86e5a8..1d766a3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-05-22 Jakub Jelinek <jakub@redhat.com> + + * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure + all padding bits in REAL_VALUE_TYPE are cleared. + 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> Cleanup and improve multipass_dfa_lookahead_guard diff --git a/gcc/tree-streamer-in.c b/gcc/tree-streamer-in.c index bead119..97ffc1e 100644 --- a/gcc/tree-streamer-in.c +++ b/gcc/tree-streamer-in.c @@ -168,6 +168,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); |