From: Eric Botcazou Date: Mon, 24 Sep 2012 10:27:18 +0000 (+0000) Subject: tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in TYPE_NONALIASED_CO... X-Git-Tag: upstream/12.2.0~74072 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04208228d829c01a191264c27062af4bdf35ae84;p=platform%2Fupstream%2Fgcc.git tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in TYPE_NONALIASED_COMPONENT flag. * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in TYPE_NONALIASED_COMPONENT flag. * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out TYPE_NONALIASED_COMPONENT flag. From-SVN: r191662 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ae9f84c..c7cfe88 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2012-09-24 Eric Botcazou + + * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in + TYPE_NONALIASED_COMPONENT flag. + * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out + TYPE_NONALIASED_COMPONENT flag. + 2012-09-24 Jia Liu * doc/lto.texi: Separate sections. diff --git a/gcc/tree-streamer-in.c b/gcc/tree-streamer-in.c index 4e3cdc7..f9bee51 100644 --- a/gcc/tree-streamer-in.c +++ b/gcc/tree-streamer-in.c @@ -334,6 +334,8 @@ unpack_ts_type_common_value_fields (struct bitpack_d *bp, tree expr) TYPE_NEEDS_CONSTRUCTING (expr) = (unsigned) bp_unpack_value (bp, 1); if (RECORD_OR_UNION_TYPE_P (expr)) TYPE_TRANSPARENT_AGGR (expr) = (unsigned) bp_unpack_value (bp, 1); + else if (TREE_CODE (expr) == ARRAY_TYPE) + TYPE_NONALIASED_COMPONENT (expr) = (unsigned) bp_unpack_value (bp, 1); TYPE_PACKED (expr) = (unsigned) bp_unpack_value (bp, 1); TYPE_RESTRICT (expr) = (unsigned) bp_unpack_value (bp, 1); TYPE_CONTAINS_PLACEHOLDER_INTERNAL (expr) diff --git a/gcc/tree-streamer-out.c b/gcc/tree-streamer-out.c index ab86b1e..54059a8 100644 --- a/gcc/tree-streamer-out.c +++ b/gcc/tree-streamer-out.c @@ -279,6 +279,8 @@ pack_ts_type_common_value_fields (struct bitpack_d *bp, tree expr) bp_pack_value (bp, TYPE_NEEDS_CONSTRUCTING (expr), 1); if (RECORD_OR_UNION_TYPE_P (expr)) bp_pack_value (bp, TYPE_TRANSPARENT_AGGR (expr), 1); + else if (TREE_CODE (expr) == ARRAY_TYPE) + bp_pack_value (bp, TYPE_NONALIASED_COMPONENT (expr), 1); bp_pack_value (bp, TYPE_PACKED (expr), 1); bp_pack_value (bp, TYPE_RESTRICT (expr), 1); bp_pack_value (bp, TYPE_CONTAINS_PLACEHOLDER_INTERNAL (expr), 2);