From: Richard Henderson Date: Sat, 16 Mar 2002 01:25:53 +0000 (-0800) Subject: * init.c (build_new_1): Use size_binop instead of cp_build_binary_op. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ba20759607fdd47b35ffa2305df3e44cf70b202;p=gcc.git * init.c (build_new_1): Use size_binop instead of cp_build_binary_op. From-SVN: r50867 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 90ac3c60d8e..660e202b562 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2002-03-15 Richard Henderson + + * init.c (build_new_1): Use size_binop instead of cp_build_binary_op. + 2002-03-15 Mark Mitchell * cp-tree.h (CLEANUP_DECL): Remove. diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 05ccf33e103..0e39646944a 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -2260,7 +2260,7 @@ build_new_1 (exp) size = size_in_bytes (true_type); if (has_array) - size = fold (cp_build_binary_op (MULT_EXPR, size, nelts)); + size = size_binop (MULT_EXPR, size, convert (sizetype, nelts)); if (TREE_CODE (true_type) == VOID_TYPE) {