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

2001-11-26 Thread Bill Allombert
Package: gcc Version: 2:2.95.4-8 Severity: minor Hello, gcc by default allows dollars in identifiers on i386. Unfortunately, the assembler does not like them. %cat bug.c EOF int $b; main() { for($b=0;$b10;$b++) { printf(%d\n,$b); } } EOF % gcc bug.c /tmp/cc2uXoLV.s: Assembler

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

2001-11-26 Thread Christopher C. Chimelis
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

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

2001-11-26 Thread Martin v. Loewis
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) Could you kindly elaborate a little? I assume one problem

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

2001-11-26 Thread Christopher C. Chimelis
On Mon, 26 Nov 2001, Martin v. Loewis wrote: Could you kindly elaborate a little? I assume one problem is that $ indicates literal values to the assembler, as in movl$.LC1, (%esp) That explains why dollars at the beginning of identifiers are not acceptable. It doesn't explain