Serious error-causing change in new CPP's -traditional behavior

Zack Weinberg zack@wolery.cumb.org
Wed May 10 16:18:00 GMT 2000


On Thu, May 11, 2000 at 08:15:02AM +0900, Neil Booth wrote:
> Maybe a better idea is to combine a # followed by a number into a
> CPP_NUMBER token, if the assembler option is set, in the same way as I
> have to for the initial CPP_DOT token for C when parsing
> 
> .123456
> 
> for example.  I think whitespace can separate the # and the number in
> assembler, but doesn't have to, right?  If so I can just drop any
> whitespace that happens to be there.
> 
> Then the number would be output with a preceding #, and not every
> directive handler needs to be aware of assembler syntax.  Does this
> sound better?

I think that's iffy.  Not every assembler uses # in this manner,
dropping whitespace may be wrong, and the handlers have to be aware of
assembler issues anyway, although in practice it only comes up for a
few of them.

zw


More information about the Gcc-bugs mailing list