Commit e872bb7a by Jason Merrill Committed by Jason Merrill

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
parent 5ad5a526
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> 1997-11-26 Mark Mitchell <mmitchell@usa.net>
* pt.c (unify): Handle `void' template parameters in * pt.c (unify): Handle `void' template parameters in
......
...@@ -1301,6 +1301,7 @@ expand_throw (exp) ...@@ -1301,6 +1301,7 @@ expand_throw (exp)
cleanup = lookup_fnfields (TYPE_BINFO (TREE_TYPE (object)), cleanup = lookup_fnfields (TYPE_BINFO (TREE_TYPE (object)),
dtor_identifier, 0); dtor_identifier, 0);
cleanup = TREE_VALUE (cleanup); cleanup = TREE_VALUE (cleanup);
mark_used (cleanup);
mark_addressable (cleanup); mark_addressable (cleanup);
/* Pretend it's a normal function. */ /* Pretend it's a normal function. */
cleanup = build1 (ADDR_EXPR, cleanup_type, cleanup); cleanup = build1 (ADDR_EXPR, cleanup_type, cleanup);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment