class.c (type_requires_array_cookie): New function.
authorMark Mitchell <mark@codesourcery.com>
Thu, 19 Jul 2001 04:27:16 +0000 (04:27 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 19 Jul 2001 04:27:16 +0000 (04:27 +0000)
commitdbc957f103982bd3d8cb973beb26439d4e99ad8c
tree55d1f67ed10772a2950b1029d8cfb2d9fe75bb8e
parent8458e9540166e45e4e9501cf2ae5a9aeb49b1468
class.c (type_requires_array_cookie): New function.

* class.c (type_requires_array_cookie): New function.
(check_methods): Don't try to figure out whether the type needs a
cookie here.
(check_bases_and_members): Set TYPE_VEC_NEW_USES_COOKIE here.
* cp-tree.h (TYPE_VEC_DELETE_TAKES_SIZE): Remove.
(TYPE_VEC_NEW_USES_COOKIE): Reimplement.
* pt.c (instantiate_class_template): Don't set
TYPE_VEC_DELETE_TAKES_SIZE.
* NEWS: Document ABI changes from GCC 3.0.

From-SVN: r44142
gcc/cp/ChangeLog
gcc/cp/NEWS
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/g++.old-deja/g++.abi/arraynew.C