OSDN Git Service

2010-04-15 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Apr 2010 15:30:17 +0000 (15:30 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Apr 2010 15:30:17 +0000 (15:30 +0000)
* alias.c (alias_set_subset_of): Handle alias-set zero
child properly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158380 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/alias.c

index 0b6da05..3610918 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-15  Richard Guenther  <rguenther@suse.de>
+
+       * alias.c (alias_set_subset_of): Handle alias-set zero
+       child properly.
+
 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
            Julian Brown  <julian@codesourcery.com>
 
index c10b971..4be7085 100644 (file)
@@ -413,7 +413,7 @@ alias_set_subset_of (alias_set_type set1, alias_set_type set2)
   /* Otherwise, check if set1 is a subset of set2.  */
   ase = get_alias_set_entry (set2);
   if (ase != 0
-      && ((ase->has_zero_child && set1 == 0)
+      && (ase->has_zero_child
          || splay_tree_lookup (ase->children,
                                (splay_tree_key) set1)))
     return true;