This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: Interactions between c++filter and assembler output



On Fri, Feb 26, 1999 at 09:26:58AM -0800, Joe Buck wrote:

> > I've noticed that c++filt gets easily confused while unmangling assembler
> > files. For instance, in constructs such as
> > .type blaname,function
> > it doesn't know where to end blaname (at the comma), and ends up not
> > unmangling it.

> That's a c++filt bug, then; a comma can't appear in a mangled symbol.

> > For machines where it causes no further problems, I think it is a good
> > idea to tweak the assembler output a bit, so that it yields
> > .type blaname , function
> > which c++filt knows how to unmangle correctly.

> Why not just fix c++filt?

Because c++filt code is a bit hard to follow... and I wasn't even sure it
was a bug there. I try to rummage through it.

However, adding those spaces may make the whole of egcs sturdier (impervious
to some c++filt bugs, for instance).  I don't know what's the preferred 
approach: making the whole project more stable, or leaving stuff as is, 
knowing it may trip c++filt from time to time ?

-- 
	Marc Espie		
|anime, sf, juggling, unicycle, acrobatics, comics...
|AmigaOS, OpenBSD, C++, perl, Icon, PostScript...
| `real programmers don't die, they just get out of beta'