diff options
| -rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/cp/init.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 90ac3c6..660e202 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2002-03-15 Richard Henderson <rth@redhat.com> + + * init.c (build_new_1): Use size_binop instead of cp_build_binary_op. + 2002-03-15 Mark Mitchell <mark@codesourcery.com> * cp-tree.h (CLEANUP_DECL): Remove. diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 05ccf33..0e39646 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) { |
