[lto,committed] : Fix PR lto/54598

Submitted by Georg-Johann Lay on Sept. 17, 2012, 4:09 p.m.

Details

Message ID 50574B2F.9000701@gjlay.de
State New
Headers show

Commit Message

Georg-Johann Lay Sept. 17, 2012, 4:09 p.m.
http://gcc.gnu.org/viewcvs?view=revision&revision=191394

Committed as preapproved in http://gcc.gnu.org/PR54598#c1

Johann


	PR lto/54598
	* tree-streamer-in.c (unpack_ts_real_cst_value_fields): Use ggc'ed
	FIXED_VALUE_TYPE instead of struct fixed_value.

Patch hide | download patch | download mbox

Index: tree-streamer-in.c
===================================================================
--- tree-streamer-in.c	(revision 191393)
+++ tree-streamer-in.c	(revision 191394)
@@ -172,12 +172,11 @@  unpack_ts_real_cst_value_fields (struct
 static void
 unpack_ts_fixed_cst_value_fields (struct bitpack_d *bp, tree expr)
 {
-  struct fixed_value fv;
-
-  fv.mode = bp_unpack_enum (bp, machine_mode, MAX_MACHINE_MODE);
-  fv.data.low = bp_unpack_var_len_int (bp);
-  fv.data.high = bp_unpack_var_len_int (bp);
-  TREE_FIXED_CST (expr) = fv;
+  FIXED_VALUE_TYPE *fp = ggc_alloc_fixed_value ();
+  fp->mode = bp_unpack_enum (bp, machine_mode, MAX_MACHINE_MODE);
+  fp->data.low = bp_unpack_var_len_int (bp);
+  fp->data.high = bp_unpack_var_len_int (bp);
+  TREE_FIXED_CST_PTR (expr) = fp;
 }