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

Geoff Keating geoffk@geoffk.org
Mon Nov 24 21:37:00 GMT 2003


Carlo Wood <carlo@alinoe.com> writes:

> On Mon, Nov 24, 2003 at 08:44:17AM -0500, Jerry Quinn wrote:
> > I have a couple of curiosity questions:
> > 
> > 1) Are IEEE numbers the only ones that will ever be seen by
> >    print_IEEE_fp?
> 
> It seems that the ABI defines that the hex float value
> is a direct representation of the bits in a float/double
> of the target machine :(.  So, no.  In that case it will
> output nonsense.  But, from the point of view of a cross
> compiler, there is not reasonable way for a demangler
> to know what the target WAS - so I chose to handle everything
> as IEEE and sorry for the those who own a Cray.

That might be reasonable for 'float' and 'double', but 'long double'
varies greatly between platforms.

-- 
- Geoffrey Keating <geoffk@geoffk.org>



More information about the Libstdc++ mailing list