Message ID | a575464e-58f0-9532-ae40-d93556190c14@suse.cz |
---|---|
State | New |
Headers | show |
Series | Fix typo in index comporasion of CONSTRUCTOR. | expand |
On Fri, May 31, 2019 at 3:43 PM Martin Liška <mliska@suse.cz> wrote: > > Hi. > > I've been working on an overhaul of IPA ICF and I noticed that issue. > > Looks to me obvious. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? OK. Richard. > Thanks, > Martin > > gcc/ChangeLog: > > 2019-05-31 Martin Liska <mliska@suse.cz> > > * fold-const.c (operand_equal_p): Fix typo as compare_tree_int > returns 0 when operands are equal. > --- > gcc/fold-const.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 42289013cc1..3e066a2ecc4 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -3508,10 +3508,10 @@ operand_equal_p (const_tree arg0, const_tree arg1, unsigned int flags) positives for GENERIC. */ || (c0->index && (TREE_CODE (c0->index) != INTEGER_CST - || !compare_tree_int (c0->index, i))) + || compare_tree_int (c0->index, i))) || (c1->index && (TREE_CODE (c1->index) != INTEGER_CST - || !compare_tree_int (c1->index, i)))) + || compare_tree_int (c1->index, i)))) return 0; } return 1;