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.

2003-11-10  Carlo Wood  <>

        PR libstdc++/12736
	* bits/demangle.h
	(session<Allocator>::next_peek() const): Added.
	Renamed from decode_decimal_integer(string_type&).
	Decode <template_param> as well.
	Handle <template-param> for <nested-name>'s.
	(enum xary_nt): Added.
	(struct entry_st): Added member `xary_nt type' instead of `bool unary'.
	(symbol_name_table_c): Updated for `entry_st::type' and additional
	operators (unary `operator+' and `sizeof(type)').
	(offset_table_c): Updated for new operators (causing a new hash map).
	(decode_operator_name): Match the updated hash map.
	Support for `sizeof ([typename] type)' (st),
	dependent names (sr) and casting operator (cv).  Handle
	Support `extern "C"' function types (FY).

The original demangler code was written for a draft version of the
ABI somewhere in 2000.  This patch updates the demangle for all
changes that have been made since.

The patch (bits/demangle.h) was tested with my own local testsuite.

Ok, to commit?

Carlo Wood <>

Attachment: PR12947.diff
Description: Text document

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