This is the mail archive of the gcc-bugs@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]

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


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

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