From: James A. Morrison Date: Sun, 14 Aug 2005 23:19:05 +0000 (+0000) Subject: fold-const (fold_binary): Call fold_build2 instead of fold (build. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b23dce2468347efe17a1a0808e340f9251701ef4;p=gcc.git fold-const (fold_binary): Call fold_build2 instead of fold (build. 2005-08-14 James A. Morrison * fold-const (fold_binary): Call fold_build2 instead of fold (build. From-SVN: r103089 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f7ef0ce0474..ae35c9f1be9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-08-14 James A. Morrison + + * fold-const (fold_binary): Call fold_build2 instead of fold (build. + 2005-08-14 Ulrich Weigand * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P' diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 383bd670d1d..19b5459a03f 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -9310,10 +9310,9 @@ fold_binary (enum tree_code code, tree type, tree op0, tree op1) tree st0, st1; st0 = lang_hooks.types.signed_type (TREE_TYPE (arg0)); st1 = lang_hooks.types.signed_type (TREE_TYPE (arg1)); - return fold - (build2 (code == LE_EXPR ? GE_EXPR: LT_EXPR, - type, fold_convert (st0, arg0), - fold_convert (st1, integer_zero_node))); + return fold_build2 (code == LE_EXPR ? GE_EXPR: LT_EXPR, + type, fold_convert (st0, arg0), + build_int_cst (st1, 0)); } } }