From 1999fd7dde1116754b88e9749334ae74c41d884e Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 15 Apr 2014 10:09:40 +0000 Subject: [PATCH] alias.c (record_component_aliases): Do not walk BINFOs. 2014-04-15 Richard Biener * alias.c (record_component_aliases): Do not walk BINFOs. From-SVN: r209412 --- gcc/ChangeLog | 4 ++++ gcc/alias.c | 11 ----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 751c2f7346e..1a2f425e02a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-04-15 Richard Biener + + * alias.c (record_component_aliases): Do not walk BINFOs. + 2014-04-15 Richard Biener * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): diff --git a/gcc/alias.c b/gcc/alias.c index 434ae7ad304..f8e7760e411 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -995,17 +995,6 @@ record_component_aliases (tree type) case RECORD_TYPE: case UNION_TYPE: case QUAL_UNION_TYPE: - /* Recursively record aliases for the base classes, if there are any. */ - if (TYPE_BINFO (type)) - { - int i; - tree binfo, base_binfo; - - for (binfo = TYPE_BINFO (type), i = 0; - BINFO_BASE_ITERATE (binfo, i, base_binfo); i++) - record_alias_subset (superset, - get_alias_set (BINFO_TYPE (base_binfo))); - } for (field = TYPE_FIELDS (type); field != 0; field = DECL_CHAIN (field)) if (TREE_CODE (field) == FIELD_DECL && !DECL_NONADDRESSABLE_P (field)) record_alias_subset (superset, get_alias_set (TREE_TYPE (field)));