aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-in.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-05-28 18:49:51 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-05-28 18:49:51 +0000
commit86561bb62b0c40ecc6a7d30c6e59a8a1139ae11d (patch)
treea257ccf3f4392ed6e69eaa8a19d53a5dd19d8f65 /gcc/lto-streamer-in.c
parent0a74c7586cbf24b875c05507e6861070e74ffb69 (diff)
downloadgcc-86561bb62b0c40ecc6a7d30c6e59a8a1139ae11d.zip
gcc-86561bb62b0c40ecc6a7d30c6e59a8a1139ae11d.tar.gz
gcc-86561bb62b0c40ecc6a7d30c6e59a8a1139ae11d.tar.bz2
re PR lto/44312 (lto-streamer-in.c: In function ‘lto_read_tree’: warning: ‘fv.mode’ is used uninitialized in this function)
2010-05-28 Richard Guenther <rguenther@suse.de> PR lto/44312 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields): Stream fixed-point constants mode. (unpack_ts_type_value_fields): Fix width of TYPE_MODE and TYPE_PRECISION. * lto-streamer-out.c (pack_ts_fixed_cst_value_fields): Stream fixed-point constants mode. (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE and TYPE_PRECISION. From-SVN: r159993
Diffstat (limited to 'gcc/lto-streamer-in.c')
-rw-r--r--gcc/lto-streamer-in.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c
index 2be1a40..f562d9c 100644
--- a/gcc/lto-streamer-in.c
+++ b/gcc/lto-streamer-in.c
@@ -1637,6 +1637,7 @@ unpack_ts_fixed_cst_value_fields (struct bitpack_d *bp, tree expr)
fv.data.low = (HOST_WIDE_INT) bp_unpack_value (bp, HOST_BITS_PER_WIDE_INT);
fv.data.high = (HOST_WIDE_INT) bp_unpack_value (bp, HOST_BITS_PER_WIDE_INT);
+ fv.mode = (enum machine_mode) bp_unpack_value (bp, HOST_BITS_PER_INT);
TREE_FIXED_CST (expr) = fv;
}
@@ -1770,8 +1771,8 @@ unpack_ts_type_value_fields (struct bitpack_d *bp, tree expr)
{
enum machine_mode mode;
- TYPE_PRECISION (expr) = (unsigned) bp_unpack_value (bp, 9);
- mode = (enum machine_mode) bp_unpack_value (bp, 7);
+ TYPE_PRECISION (expr) = (unsigned) bp_unpack_value (bp, 10);
+ mode = (enum machine_mode) bp_unpack_value (bp, 8);
SET_TYPE_MODE (expr, mode);
TYPE_STRING_FLAG (expr) = (unsigned) bp_unpack_value (bp, 1);
TYPE_NO_FORCE_BLK (expr) = (unsigned) bp_unpack_value (bp, 1);