[gnu.g++.bug] Can't build g++ without '$' in assembler identifiers

jonathan@comp.vuw.ac.nz (07/31/89)

I have tried to build g++ 1.35.0 on a Pyramid 90x.  The assembler for
this computer cannot handle the character '$' in assembler labels.
I'm sure this misfeature can't be unique to Pyramid.

G++ really wants to use the character '$' in assembler labels -- for
instance, in the assembler names of operator<foo> functions.

I have tried replacing all the '$' by '.' (by defining macros
for all the strings containing '$').  The resulting assembler output
will assemble on my machine, but gdb can't parse the resulting
symbol tables.  I'm not sure what other characters are both likely
to be safe and acceptable to the Pyramid assembler. Perhaps '_'?

Is there an approved way of building g++ on machines that do
not allow '$' in identifiers (apart from porting GAS) ?

If so, what characters are recommended as a replacement for '$' ?

If not, are the changes to eliminate the '$' in assembler labels worth
posting?