c++/6611: [PATCH] Non-weak emission of `std::__default_alloc_template[...]' on platform(s) where it should be weak

Jason Merrill jason@redhat.com
Sat May 18 00:01:00 GMT 2002


We clear DECL_EXTERNAL when we start to define a function.  In this case
when we were supposed to clear it again, it was already referenced, so
DECL_NEEDED_P was true, so we ended up emitting it even though
import_export_decl tried to suppress it.

Yet another ugly tweak to the C++ linkage morass.  I'll get back to work on
the rewrite RSN.

Tested i686-pc-linux-gnu, applied to trunk.  I'll come up with a testcase
soon, but I want to get this in now so it stops interfering with libstdc++
work.

2002-05-18  Jason Merrill  <jason@redhat.com>

	* decl2.c (import_export_decl): If we clear
	DECL_NOT_REALLY_EXTERN, make sure DECL_EXTERNAL is set.

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


More information about the Gcc-patches mailing list