mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-02 05:50:26 +08:00
tree-ssa.c (verify_flow_insensitive_alias_info): Process every variable that may have aliases, not just tags.
* tree-ssa.c (verify_flow_insensitive_alias_info): Process every variable that may have aliases, not just tags. From-SVN: r85267
This commit is contained in:
parent
05bfc51d87
commit
852c7b12c5
@ -1,3 +1,8 @@
|
||||
2004-07-28 Diego Novillo <dnovillo@redhat.com>
|
||||
|
||||
* tree-ssa.c (verify_flow_insensitive_alias_info): Process
|
||||
every variable that may have aliases, not just tags.
|
||||
|
||||
2004-07-28 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
|
||||
|
@ -348,28 +348,25 @@ verify_flow_insensitive_alias_info (void)
|
||||
|
||||
for (i = 0; i < num_referenced_vars; i++)
|
||||
{
|
||||
size_t j;
|
||||
var_ann_t ann;
|
||||
varray_type may_aliases;
|
||||
|
||||
var = referenced_var (i);
|
||||
ann = var_ann (var);
|
||||
may_aliases = ann->may_aliases;
|
||||
|
||||
if (ann->mem_tag_kind == TYPE_TAG || ann->mem_tag_kind == NAME_TAG)
|
||||
for (j = 0; may_aliases && j < VARRAY_ACTIVE_SIZE (may_aliases); j++)
|
||||
{
|
||||
size_t j;
|
||||
varray_type may_aliases = ann->may_aliases;
|
||||
tree alias = VARRAY_TREE (may_aliases, j);
|
||||
|
||||
for (j = 0; may_aliases && j < VARRAY_ACTIVE_SIZE (may_aliases); j++)
|
||||
bitmap_set_bit (visited, var_ann (alias)->uid);
|
||||
|
||||
if (!may_be_aliased (alias))
|
||||
{
|
||||
tree alias = VARRAY_TREE (may_aliases, j);
|
||||
|
||||
bitmap_set_bit (visited, var_ann (alias)->uid);
|
||||
|
||||
if (!may_be_aliased (alias))
|
||||
{
|
||||
error ("Non-addressable variable inside an alias set.");
|
||||
debug_variable (alias);
|
||||
goto err;
|
||||
}
|
||||
error ("Non-addressable variable inside an alias set.");
|
||||
debug_variable (alias);
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user