From: Jason Merrill Date: Wed, 26 Nov 1997 06:20:36 +0000 (+0000) Subject: * init.c (build_new): Copy size to the saveable obstack. X-Git-Tag: releases/egcs-1.0.0~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5f93fcf83d9dc0cc022e9f84a2c99c2e7ab0116;p=thirdparty%2Fgcc.git * init.c (build_new): Copy size to the saveable obstack. From-SVN: r16721 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4fc00c2654f7..91a82a0386ac 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +Tue Nov 25 11:28:21 1997 Jason Merrill + + * init.c (build_new): Copy size to the saveable obstack. + Mon Nov 24 12:15:55 1997 Jason Merrill * init.c (build_new): Stick a CLEANUP_POINT_EXPR inside the diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 57eb8a3d1da8..186b6c3edf69 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -2736,6 +2736,9 @@ build_new (placement, decl, init, use_global_new) if (placement) flags |= LOOKUP_SPECULATIVELY; + /* Copy size to the saveable obstack. */ + size = copy_node (size); + cleanup = build_op_delete_call (dcode, alloc_expr, size, flags); resume_momentary (yes);