summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/lto-streamer-in.c1
-rw-r--r--gcc/lto-streamer-out.c1
3 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e17878e1763..4bce209a482 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2009-10-25 Richard Guenther <rguenther@suse.de>
+
+ * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
+ Stream DECL_RESTRICTED_P.
+ * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
+
2009-10-25 Richard Sandiford <rdsandiford@googlemail.com>
* config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c
index 000be331a94..f7c793647bc 100644
--- a/gcc/lto-streamer-in.c
+++ b/gcc/lto-streamer-in.c
@@ -1650,6 +1650,7 @@ unpack_ts_decl_common_value_fields (struct bitpack_d *bp, tree expr)
if (TREE_CODE (expr) == VAR_DECL
|| TREE_CODE (expr) == PARM_DECL)
DECL_HAS_VALUE_EXPR_P (expr) = (unsigned) bp_unpack_value (bp, 1);
+ DECL_RESTRICTED_P (expr) = (unsigned) bp_unpack_value (bp, 1);
}
}
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index d593aacc4fc..1ed1939b2b2 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -433,6 +433,7 @@ pack_ts_decl_common_value_fields (struct bitpack_d *bp, tree expr)
if (TREE_CODE (expr) == VAR_DECL
|| TREE_CODE (expr) == PARM_DECL)
bp_pack_value (bp, DECL_HAS_VALUE_EXPR_P (expr), 1);
+ bp_pack_value (bp, DECL_RESTRICTED_P (expr), 1);
}
}