Commit 57e37d26 by Richard Guenther Committed by Richard Biener

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
parent 8e281a8d
2009-12-02 Richard Guenther <rguenther@suse.de> 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 PR middle-end/41491
* fold-const.c (try_move_mult_to_index): Do not leak * fold-const.c (try_move_mult_to_index): Do not leak
domain types into the IL. domain types into the IL.
...@@ -430,9 +430,11 @@ pack_ts_decl_common_value_fields (struct bitpack_d *bp, tree expr) ...@@ -430,9 +430,11 @@ pack_ts_decl_common_value_fields (struct bitpack_d *bp, tree expr)
|| TREE_CODE (expr) == VAR_DECL) || TREE_CODE (expr) == VAR_DECL)
{ {
bp_pack_value (bp, DECL_BY_REFERENCE (expr), 1); 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 if (TREE_CODE (expr) == VAR_DECL
|| TREE_CODE (expr) == PARM_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); bp_pack_value (bp, DECL_RESTRICTED_P (expr), 1);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment