Patchwork Fix PR55021

login
register
mail settings
Submitter Richard Guenther
Date Oct. 22, 2012, 2:07 p.m.
Message ID <alpine.LNX.2.00.1210221607240.4063@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/193160/
State New
Headers show

Comments

Richard Guenther - Oct. 22, 2012, 2:07 p.m.
Somehow bogus truncations slipped through in my LTO overflowed
INTEGER_CST streaming patch.  Oops.

Committed as obvious.

Richard.

2012-10-22  Richard Biener  <rguenther@suse.de>

	PR lto/55021
	* tree-streamer-in.c (unpack_ts_int_cst_value_fields): Remove
	bogus truncations.

Patch

Index: gcc/tree-streamer-in.c
===================================================================
--- gcc/tree-streamer-in.c	(revision 192688)
+++ gcc/tree-streamer-in.c	(working copy)
@@ -146,8 +146,8 @@  unpack_ts_base_value_fields (struct bitp
 static void
 unpack_ts_int_cst_value_fields (struct bitpack_d *bp, tree expr)
 {
-  TREE_INT_CST_LOW (expr) = (unsigned) bp_unpack_var_len_unsigned (bp);
-  TREE_INT_CST_HIGH (expr) = (unsigned) bp_unpack_var_len_int (bp);
+  TREE_INT_CST_LOW (expr) = bp_unpack_var_len_unsigned (bp);
+  TREE_INT_CST_HIGH (expr) = bp_unpack_var_len_int (bp);
 }