diff options
author | Jeff Law <law@redhat.com> | 2018-08-28 17:09:57 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2018-08-28 17:09:57 -0600 |
commit | 78e93935ef26d2d5d9581aed7bae63309090e3e0 (patch) | |
tree | e93bb508e250004dcc248ddfb8e9cf464c5f5669 | |
parent | d0794d14de24117e0bfd1d9391059a76459f2f87 (diff) | |
download | gcc-78e93935ef26d2d5d9581aed7bae63309090e3e0.zip gcc-78e93935ef26d2d5d9581aed7bae63309090e3e0.tar.gz gcc-78e93935ef26d2d5d9581aed7bae63309090e3e0.tar.bz2 |
* fold-const.c (fold_binary_loc): Remove recently added assert.
From-SVN: r263936
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/fold-const.c | 8 |
2 files changed, 5 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bd3ad1c..8d35df7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-08-28 Jeff Law <law@redhat.com> + + * fold-const.c (fold_binary_loc): Remove recently added assert. + 2018-08-28 Joern Rennecke <joern.rennecke@riscy-ip.com> * genpreds.c (write_predicate_subfunction): Also add ATTRIBUTE_UNUSED @@ -78,8 +82,8 @@ * tree.h: Update documentation of fndecl_built_in_p functions. -2018-08-27 Jeff Law <law@redhat.com> +2018-08-27 Jeff Law <law@redhat.com> PR tree-optimization/87110 * tree-ssa-dse.c (compute_trims): Handle non-constant TYPE_SIZE_UNIT. diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 63e15f0..68bd64f 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -9326,14 +9326,6 @@ fold_binary_loc (location_t loc, enum tree_code code, tree type, if (kind == tcc_comparison || code == MIN_EXPR || code == MAX_EXPR) { - if (code == MIN_EXPR || code == MAX_EXPR) - { - tree typ0 = TREE_TYPE (arg0); - tree typ1 = TREE_TYPE (arg1); - gcc_assert (TYPE_SIGN (typ0) == TYPE_SIGN (typ1) - && TYPE_MODE (typ0) == TYPE_MODE (typ1)); - } - STRIP_SIGN_NOPS (arg0); STRIP_SIGN_NOPS (arg1); } |