except.c (expand_throw): Call mark_used on the destructor.
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 27 Nov 1997 04:31:58 +0000 (04:31 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 27 Nov 1997 04:31:58 +0000 (23:31 -0500)
* except.c (expand_throw): Call mark_used on the destructor.

Fixes operator new on the PA.

From-SVN: r16773

gcc/cp/ChangeLog
gcc/cp/except.c

index 8d926635bc17048137904d8e273fca2948027862..0a34b48801ddc83f66dfce4088fef5e5ef410d32 100644 (file)
@@ -1,3 +1,7 @@
+Wed Nov 26 20:28:49 1997  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * except.c (expand_throw): Call mark_used on the destructor.
+
 1997-11-26  Mark Mitchell  <mmitchell@usa.net>
 
        * pt.c (unify): Handle `void' template parameters in
index 56b2a4175e656f55ee356402db4327e5bc8f2d07..658542199a6c6df91e81deff22c7d1cd7d33b23a 100644 (file)
@@ -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);