aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-12-02 19:35:37 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-12-02 19:35:37 +0000
commit57e37d2645870b8190ea825b73709fd94c4bc3eb (patch)
tree59bb66a6c9280458eeb48d4ef0ff2ed2dc394e2d /gcc
parent8e281a8d56cb86f1d9502450713e3f5dc8c4608f (diff)
downloadgcc-57e37d2645870b8190ea825b73709fd94c4bc3eb.zip
gcc-57e37d2645870b8190ea825b73709fd94c4bc3eb.tar.gz
gcc-57e37d2645870b8190ea825b73709fd94c4bc3eb.tar.bz2
lto-streamer-out.c (pack_ts_decl_common_value_fields): Do not pretend we have value exprs.
2009-12-02 Richard Guenther <rguenther@suse.de> * lto-streamer-out.c (pack_ts_decl_common_value_fields): Do not pretend we have value exprs. From-SVN: r154921
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/lto-streamer-out.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2860355..46724b0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2009-12-02 Richard Guenther <rguenther@suse.de>
+ * lto-streamer-out.c (pack_ts_decl_common_value_fields):
+ Do not pretend we have value exprs.
+
+2009-12-02 Richard Guenther <rguenther@suse.de>
+
PR middle-end/41491
* fold-const.c (try_move_mult_to_index): Do not leak
domain types into the IL.
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index 7389081..30d35c7 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -430,9 +430,11 @@ pack_ts_decl_common_value_fields (struct bitpack_d *bp, tree expr)
|| TREE_CODE (expr) == VAR_DECL)
{
bp_pack_value (bp, DECL_BY_REFERENCE (expr), 1);
+ /* DECL_HAS_VALUE_EXPR_P: Do not falsely pretend we have value
+ expressions, we do not stream those at the moment. */
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, false, 1);
bp_pack_value (bp, DECL_RESTRICTED_P (expr), 1);
}
}