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
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
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
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
4 matches
Mail list logo