alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P double check that...
authorJan Hubicka <hubicka@ucw.cz>
Tue, 24 Nov 2015 20:35:16 +0000 (21:35 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 24 Nov 2015 20:35:16 +0000 (20:35 +0000)
commitba6a6a1d44c17f25671162c00dafd9959818667f
treebfa02931487309252ffddfb0ef2cd4f62997167f
parent0b87a9a2bd3835e62e690c8acd4bbb4b3bec27c7
alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P double check that type is main variant.

* alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
double check that type is main variant.
* tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
variant.
(verify_type_variant): Verify that variants have no
TYPE_ALIAS_SET_KNOWN_P set
* tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
streaming so constant fields come first; stream TYPE_ALIAS_SET==0
only for main variants; stream TYPE_ALIAS_SET as a bit.
* tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
accordingly.

From-SVN: r230838
gcc/ChangeLog
gcc/alias.c
gcc/tree-streamer-in.c
gcc/tree-streamer-out.c
gcc/tree.c