From: Jeff Law Date: Tue, 28 Aug 2018 23:09:57 +0000 (-0600) Subject: * fold-const.c (fold_binary_loc): Remove recently added assert. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78e93935ef26d2d5d9581aed7bae63309090e3e0;p=gcc.git * fold-const.c (fold_binary_loc): Remove recently added assert. From-SVN: r263936 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bd3ad1c4927..8d35df7e96a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-08-28 Jeff Law + + * fold-const.c (fold_binary_loc): Remove recently added assert. + 2018-08-28 Joern Rennecke * 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 +2018-08-27 Jeff Law 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 63e15f027fb..68bd64fcc59 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); }