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
This commit is contained in:
parent
4960a0cb38
commit
a822564db5
|
@ -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>
|
2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
|
||||||
|
|
||||||
Cleanup and improve multipass_dfa_lookahead_guard
|
Cleanup and improve multipass_dfa_lookahead_guard
|
||||||
|
|
|
@ -168,6 +168,9 @@ unpack_ts_real_cst_value_fields (struct bitpack_d *bp, tree expr)
|
||||||
REAL_VALUE_TYPE r;
|
REAL_VALUE_TYPE r;
|
||||||
REAL_VALUE_TYPE *rp;
|
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.cl = (unsigned) bp_unpack_value (bp, 2);
|
||||||
r.decimal = (unsigned) bp_unpack_value (bp, 1);
|
r.decimal = (unsigned) bp_unpack_value (bp, 1);
|
||||||
r.sign = (unsigned) bp_unpack_value (bp, 1);
|
r.sign = (unsigned) bp_unpack_value (bp, 1);
|
||||||
|
|
Loading…
Reference in New Issue