This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PR libstdc++/12736 / C++-ABI demangler update.

This is a new patch - I removed the IEEE decoding because there was too
much oppostion.  This version prints out the literal mangled string
of the floating value instead - but allows to override the printing
of floating values by those who use the demangle.h header.


2003-12-03  Carlo Wood  <>

	PR libstdc++/13045
	* bits/demangle.h
	namespace __gnu_cxx::demangler
	(enum substitution_nt): Removed trailing comma.
	(session<Allocator>::decode_real): Added.
	(session<Allocator>::decode_literal): Call decode_real for
	floating literals.
	(session<Allocator>::decode_type_with_postfix): Put the postfix
	of the return type of (member) functions after the function
	instead of after the return type.  Also, put a space after the
	prefix of qualified function pointers: "int (* const<space>".
	* src/ include most dependent header file first.
	* testsuite/demangle/regression/ Updated one
	and added three tests.

Testsuite runs ok.  Bootstrap works too of course.

Patch attached.

Carlo Wood <>

Attachment: PR13045.diff
Description: Text document

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]