[c++] Keep tm, div_t, ldiv_t, lconv mangling on Solaris (PR libstdc++-v3/1773)

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Wed Aug 17 14:59:00 GMT 2011


Jason Merrill <jason@redhat.com> writes:

> On 08/16/2011 11:31 AM, Marc Glisse wrote:
>> It might be less invasive to have decl_mangling_context return
>> global_namespace without actually modifying the expr?
>
> Please.

Done, tested as before.

	Rainer


2011-08-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
	    Marc Glisse  <marc.glisse@normalesup.org>

	gcc:
	PR libstdc++-v3/1773
	* target.def (decl_mangling_context): New C++ hook.
	* doc/tm.texi: Regenerate.
	* config/sol2-cxx.c, config/sol2-stubs.c: New files.
	* config/sol2-protos.h: Group by source file.
	(solaris_cxx_decl_mangling_context): Declare.
	* config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
	* config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
	Use $<.
	* config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
	Add sol2-stubs.o to extra_objs.

	gcc/cp:
	PR libstdc++-v3/1773
	* mangle.c (decl_mangling_context): Call
	targetm.cxx.decl_mangling_context.
	(write_unscoped_name): Use decl_mangling_context.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sol2-c++-mangling.patch
Type: text/x-patch
Size: 8584 bytes
Desc: Keep tm, div_t, ldiv_t, lconv mangling on Solaris (PR libstdc++-v3/1773)
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110817/58ca13be/attachment.bin>
-------------- next part --------------

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


More information about the Gcc-patches mailing list