This is the mail archive of the gcc-patches@gcc.gnu.org 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]

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


Jonathan Lennox <lennox@cs.columbia.edu> writes:

| Ian Lance Taylor <ian@wasabisystems.com> writes:
| > 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.
| 
| Alternately, couldn't the demangler API be modified so that the *caller*
| specifies a const struct floatformat* argument?

This supposes that we've "standardized" on floatformat and that every
demangler can be told to use one of the other format.  I think that is
too problematic.  

-- Gaby


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