From e872bb7a78485ad19507115d289abe61954438ca Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 27 Nov 1997 04:31:58 +0000 Subject: [PATCH] except.c (expand_throw): Call mark_used on the destructor. * except.c (expand_throw): Call mark_used on the destructor. Fixes operator new on the PA. From-SVN: r16773 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/except.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8d926635bc1..0a34b48801d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +Wed Nov 26 20:28:49 1997 Jason Merrill + + * except.c (expand_throw): Call mark_used on the destructor. + 1997-11-26 Mark Mitchell * pt.c (unify): Handle `void' template parameters in diff --git a/gcc/cp/except.c b/gcc/cp/except.c index 56b2a4175e6..658542199a6 100644 --- a/gcc/cp/except.c +++ b/gcc/cp/except.c @@ -1301,6 +1301,7 @@ expand_throw (exp) cleanup = lookup_fnfields (TYPE_BINFO (TREE_TYPE (object)), dtor_identifier, 0); cleanup = TREE_VALUE (cleanup); + mark_used (cleanup); mark_addressable (cleanup); /* Pretend it's a normal function. */ cleanup = build1 (ADDR_EXPR, cleanup_type, cleanup); -- 2.30.2