diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2020-06-10 10:59:46 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2020-06-10 10:59:46 +0200 |
commit | 708b56f90b4e5a4a6d7043514e5709c22d88e41f (patch) | |
tree | 8e52e6af63ce8b76f04998006fd0314f038475f9 /gcc | |
parent | 4efacd5dbb089a747567bc22685e0e5ce2e29079 (diff) | |
download | gcc-708b56f90b4e5a4a6d7043514e5709c22d88e41f.zip gcc-708b56f90b4e5a4a6d7043514e5709c22d88e41f.tar.gz gcc-708b56f90b4e5a4a6d7043514e5709c22d88e41f.tar.bz2 |
Add more unimplemented operands in enhanced_operand_compare::operand_equal_p.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/misc.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/misc.cc b/gcc/misc.cc index 417b44d..9648132 100644 --- a/gcc/misc.cc +++ b/gcc/misc.cc @@ -168,8 +168,14 @@ enhanced_operand_compare::operand_equal_p (const_tree op1, const_tree op2, { case CASE_LABEL_EXPR: return compare_operands (op1, op2, 4); + + // There's a bunch of expressions that operand_equal_p do not + // handle. Assume those are equal. case CONSTRUCTOR: + case WITH_SIZE_EXPR: + case OBJ_TYPE_REF: return true; + case TREE_LIST: return (operand_equal_p (TREE_PURPOSE (op1), TREE_PURPOSE (op2), flags) && operand_equal_p (TREE_VALUE (op1), TREE_VALUE (op2), flags)); |