From 86561bb62b0c40ecc6a7d30c6e59a8a1139ae11d Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 28 May 2010 18:49:51 +0000 Subject: =?UTF-8?q?re=20PR=20lto/44312=20(lto-streamer-in.c:=20In=20functi?= =?UTF-8?q?on=20=E2=80=98lto=5Fread=5Ftree=E2=80=99:=20warning:=20?= =?UTF-8?q?=E2=80=98fv.mode=E2=80=99=20is=20used=20uninitialized=20in=20th?= =?UTF-8?q?is=20function)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2010-05-28 Richard Guenther 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 --- gcc/lto-streamer-in.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/lto-streamer-in.c') 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); -- cgit v1.1