re PR bootstrap/90873 (-Wmaybe-uninitialized warning in gcc/tree-ssa-forwprop.c break...
authorJan Hubicka <hubicka@ucw.cz>
Mon, 17 Jun 2019 15:43:23 +0000 (17:43 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 17 Jun 2019 15:43:23 +0000 (15:43 +0000)
PR bootstrap/90873.
* tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
TMR index check.

From-SVN: r272390

gcc/ChangeLog
gcc/tree-ssa-alias.c

index 807ce3da874735d812b4df2eb25b0c8a0f135352..c114a5dcb5a387da102c85a22f77ca3ab9ec6c77 100644 (file)
@@ -1,3 +1,9 @@
+2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR bootstrap/90873.
+       * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
+       TMR index check.
+
 2019-06-17  Tom de Vries  <tdevries@suse.de>
 
        * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
index 867b4cb53f2804aaf72d640992c0d2781708adca..11f0e8e17847c4f54da4f27abf7c79761889dafc 100644 (file)
@@ -1535,7 +1535,7 @@ indirect_ref_may_alias_decl_p (tree ref1 ATTRIBUTE_UNUSED, tree base1,
   if (((TREE_CODE (base1) != TARGET_MEM_REF
        || (!TMR_INDEX (base1) && !TMR_INDEX2 (base1)))
        && (TREE_CODE (dbase2) != TARGET_MEM_REF
-          || (!TMR_INDEX (dbase2) && !TMR_INDEX2 (base2))))
+          || (!TMR_INDEX (dbase2) && !TMR_INDEX2 (dbase2))))
       && same_type_for_tbaa (TREE_TYPE (base1), TREE_TYPE (dbase2)) == 1
       && (TREE_CODE (TREE_TYPE (base1)) != ARRAY_TYPE
          || (TYPE_SIZE (TREE_TYPE (base1))