C++ PATCH to reduce use of [cd]tor_label

Jason Merrill jason@redhat.com
Wed Dec 12 17:35:00 GMT 2001


ctor_label is obsolete in the V3 ABI, as it was used to control the special
return semantics of constructors, which they no longer have.

dtor_label is still useful, but now that we have DECL_DESTRUCTOR_P, not the
preferred way of determining whether the current function is a destructor.

Tested i686-pc-linux-gnu.

2001-12-12  Jason Merrill  <jason@redhat.com>

	* cp-tree.h (struct cp_language_function): Remove x_ctor_label.
	(ctor_label): Remove.
	* semantics.c (finish_return_stmt): Lose ctor_label support.
	* decl.c (finish_constructor_body, mark_lang_function): Likewise.
	* typeck.c (check_return_expr): Check DECL_DESTRUCTOR_P, not 
	dtor_label.

	* call.c (build_new_method_call): Let resolves_to_fixed_type_p
	check for [cd]tors.
	* class.c (fixed_type_or_null, case INDIRECT_REF): Fix.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 5322 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20011212/f780be58/attachment.bin>


More information about the Gcc-patches mailing list