diff options
author | Martin Liska <mliska@suse.cz> | 2019-06-03 12:42:14 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-06-03 10:42:14 +0000 |
commit | 4c76ebd05b41db96913d818b28668f8a530340e4 (patch) | |
tree | c30814df0c5866d615752f7f816fd282175a137d | |
parent | efb34006e9c3f9592edd77bda2e57ce14c65579b (diff) | |
download | gcc-4c76ebd05b41db96913d818b28668f8a530340e4.zip gcc-4c76ebd05b41db96913d818b28668f8a530340e4.tar.gz gcc-4c76ebd05b41db96913d818b28668f8a530340e4.tar.bz2 |
Fix typo in index comparison of CONSTRUCTOR.
2019-06-03 Martin Liska <mliska@suse.cz>
* fold-const.c (operand_equal_p): Fix typo as compare_tree_int
returns 0 when operands are equal.
From-SVN: r271859
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fold-const.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7aabe88..6529d0e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-06-03 Martin Liska <mliska@suse.cz> + + * fold-const.c (operand_equal_p): Fix typo as compare_tree_int + returns 0 when operands are equal. + 2019-06-03 Richard Biener <rguenther@suse.de> PR tree-optimization/90716 diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 4228901..3e066a2 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; |