]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* except.c (expand_throw): Call mark_used on the destructor.
authorJason Merrill <jason@yorick.cygnus.com>
Thu, 27 Nov 1997 06:36:32 +0000 (06:36 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 27 Nov 1997 06:36:32 +0000 (23:36 -0700)
From-SVN: r16774

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

index 91a82a0386ac322e6c3f897bca60b5b281377773..38dec4b478f21a5adc463130611e8dea9071cb3d 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.
+
 Tue Nov 25 11:28:21 1997  Jason Merrill  <jason@yorick.cygnus.com>
 
        * init.c (build_new): Copy size to the saveable obstack.
index 4477736b82c2990b5baaa41be0204cbc2cbc7a33..a18b70a6767fd71a368bdcbf52ec2dc98e9f61f8 100644 (file)
@@ -1310,6 +1310,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);