diff options
author | James A. Morrison <phython@gcc.gnu.org> | 2005-08-14 23:19:05 +0000 |
---|---|---|
committer | James A. Morrison <phython@gcc.gnu.org> | 2005-08-14 23:19:05 +0000 |
commit | b23dce2468347efe17a1a0808e340f9251701ef4 (patch) | |
tree | b437c23308149e8a632e03d849152ca468cca23f /gcc/fold-const.c | |
parent | 11598938f4989b238895062ff517862d0897cad8 (diff) | |
download | gcc-b23dce2468347efe17a1a0808e340f9251701ef4.zip gcc-b23dce2468347efe17a1a0808e340f9251701ef4.tar.gz gcc-b23dce2468347efe17a1a0808e340f9251701ef4.tar.bz2 |
fold-const (fold_binary): Call fold_build2 instead of fold (build.
2005-08-14 James A. Morrison <phython@gcc.gnu.org>
* fold-const (fold_binary): Call fold_build2 instead of fold (build.
From-SVN: r103089
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 383bd67..19b5459 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)); } } } |