[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#121269: gcc allows dollars in identifiers by default on i386 but fails



On Mon, 26 Nov 2001, Bill Allombert wrote:

> gcc by default allows dollars in identifiers on i386.
> Unfortunately, the assembler does not like them.

I'll spare the explanation of why the assembler barfs (since I'm assuming
that it's as obvious to everyone else as it is to me), but Bill's correct
on this one.  I'm not sure, though, that it applies to some of the other
platforms where --no-dollars-in-identifiers is already the default
(powerpc, for example, is set that way, but compiles and assembles fine
with --dollars-in-identifiers set (due to register naming on the
target).

I'll test as many platforms as are available to me to see what each is set
for.  Question to the rest of the gcc co-maintainers...should we go for
consistency and set --no-dollars-in-identifiers by default on all targets
or should we only set it on targets whose gcc outputs register names with
dollar prefixes?

> The default for gcc on i386 should be set to reject dollars in identifiers.

Definitely...I'm going to be doing another gcc-3.0 upload very soon, so
perhaps I'll toss this in there as well.  Can you file a bug against 3.0
as well?  This one only applies to 2.95.

FWIW, I don't think I can do anything about the potato compiler at this
point.  Woody is close, so it's better to just focus on fixing it there.

C



Reply to: