[PATCH] PR libstdc++/13045 / C++ demangler, floating values and function pointer type return type postfix fix.

Ian Lance Taylor ian@wasabisystems.com
Mon Nov 24 21:40:00 GMT 2003


DJ Delorie <dj@redhat.com> writes:

> > Well, to do this, we would have to find some target-specific library.
> 
> libiberty has floatformat.[ch]

Sure, but that's not what we need.  We need a library which provides a
single API which is configured based on the target.  floatformat
doesn't help, because the demangler doesn't know which floatformat
structure to use.

Basically, we need some way to map the target name onto the floating
point format.

(floatformat also turns out to be a bit of a pain to use with mangled
names, since mangled names are almost but not quite internal
representation: mangled names are for some reason always big-endian,
and they omit leading zeroes.  Also, the demangler needs to map from
the type to the floatformat structure, which is a non-obvious
transformation.  But these are minor issues.)

Ian



More information about the Libstdc++ mailing list