From: Jan Hubicka Date: Mon, 17 Jun 2019 15:43:23 +0000 (+0200) Subject: re PR bootstrap/90873 (-Wmaybe-uninitialized warning in gcc/tree-ssa-forwprop.c break... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35d57c957268c29056192f312c279fb08b4af0ea;p=gcc.git re PR bootstrap/90873 (-Wmaybe-uninitialized warning in gcc/tree-ssa-forwprop.c breaks 32-bit bootstrap) PR bootstrap/90873. * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix TMR index check. From-SVN: r272390 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 807ce3da874..c114a5dcb5a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-06-17 Jan Hubicka + + PR bootstrap/90873. + * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix + TMR index check. + 2019-06-17 Tom de Vries * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare. diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index 867b4cb53f2..11f0e8e1784 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -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))