aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-04-03 17:37:45 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1993-04-03 17:37:45 -0500
commitc03b7665c267cb9a910c05323c8d4c0571711cd0 (patch)
tree22186085b7191858851ce0c8abbdde5a1c20a888
parent20fdd649e587eb923e447773a73c6e3a71d16a64 (diff)
downloadgcc-c03b7665c267cb9a910c05323c8d4c0571711cd0.zip
gcc-c03b7665c267cb9a910c05323c8d4c0571711cd0.tar.gz
gcc-c03b7665c267cb9a910c05323c8d4c0571711cd0.tar.bz2
(store_expr): Call size_binop instead of doing the same thing with
fold and build. From-SVN: r3993
-rw-r--r--gcc/expr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 6526e21..3d0bc0e 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -2399,12 +2399,12 @@ store_expr (exp, target, suggest_reg)
{
/* Compute the size of the data to copy from the string. */
tree copy_size
- = fold (build (MIN_EXPR, sizetype,
- size_binop (CEIL_DIV_EXPR,
- TYPE_SIZE (TREE_TYPE (exp)),
- size_int (BITS_PER_UNIT)),
- convert (sizetype,
- build_int_2 (TREE_STRING_LENGTH (exp), 0))));
+ = size_binop (MIN_EXPR,
+ size_binop (CEIL_DIV_EXPR,
+ TYPE_SIZE (TREE_TYPE (exp)),
+ size_int (BITS_PER_UNIT)),
+ convert (sizetype,
+ build_int_2 (TREE_STRING_LENGTH (exp), 0)));
rtx copy_size_rtx = expand_expr (copy_size, NULL_RTX,
VOIDmode, 0);
rtx label = 0;