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-Tag: upstream/12.2.0~23886 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35d57c957268c29056192f312c279fb08b4af0ea;p=platform%2Fupstream%2Fgcc.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 807ce3d..c114a5d 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 867b4cb..11f0e8e 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))