Commit 9efdb4ad by Richard Guenther Committed by Richard Biener

re PR tree-optimization/48846 (Many -O2 -flto testsuite failures with -m32 -mavx)

2011-05-03  Richard Guenther  <rguenther@suse.de>

	PR lto/48846
	* lto-streamer-in.c (unpack_ts_decl_common_value_fields):
	Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
	* lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.

From-SVN: r173298
parent 60a45536
2011-05-03 Richard Guenther <rguenther@suse.de> 2011-05-03 Richard Guenther <rguenther@suse.de>
PR lto/48846
* lto-streamer-in.c (unpack_ts_decl_common_value_fields):
Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
* lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2011-05-03 Richard Guenther <rguenther@suse.de>
* c-decl.c (grokdeclarator): Instead of looking at * c-decl.c (grokdeclarator): Instead of looking at
TREE_OVERFLOW check if the constant fits in the index type. TREE_OVERFLOW check if the constant fits in the index type.
......
...@@ -1653,11 +1653,9 @@ unpack_ts_decl_common_value_fields (struct bitpack_d *bp, tree expr) ...@@ -1653,11 +1653,9 @@ unpack_ts_decl_common_value_fields (struct bitpack_d *bp, tree expr)
if (TREE_CODE (expr) == FIELD_DECL) if (TREE_CODE (expr) == FIELD_DECL)
{ {
unsigned HOST_WIDE_INT off_align;
DECL_PACKED (expr) = (unsigned) bp_unpack_value (bp, 1); DECL_PACKED (expr) = (unsigned) bp_unpack_value (bp, 1);
DECL_NONADDRESSABLE_P (expr) = (unsigned) bp_unpack_value (bp, 1); DECL_NONADDRESSABLE_P (expr) = (unsigned) bp_unpack_value (bp, 1);
off_align = (unsigned HOST_WIDE_INT) bp_unpack_value (bp, 8); expr->decl_common.off_align = bp_unpack_value (bp, 8);
SET_DECL_OFFSET_ALIGN (expr, off_align);
} }
if (TREE_CODE (expr) == RESULT_DECL if (TREE_CODE (expr) == RESULT_DECL
......
...@@ -401,7 +401,7 @@ pack_ts_decl_common_value_fields (struct bitpack_d *bp, tree expr) ...@@ -401,7 +401,7 @@ pack_ts_decl_common_value_fields (struct bitpack_d *bp, tree expr)
{ {
bp_pack_value (bp, DECL_PACKED (expr), 1); bp_pack_value (bp, DECL_PACKED (expr), 1);
bp_pack_value (bp, DECL_NONADDRESSABLE_P (expr), 1); bp_pack_value (bp, DECL_NONADDRESSABLE_P (expr), 1);
bp_pack_value (bp, DECL_OFFSET_ALIGN (expr), 8); bp_pack_value (bp, expr->decl_common.off_align, 8);
} }
if (TREE_CODE (expr) == RESULT_DECL if (TREE_CODE (expr) == RESULT_DECL
......
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