c/9209: cc allows dollars in identifiers by default on i386 but fails
121269@bugs.debian.org
121269@bugs.debian.org
Mon Jan 13 05:17:00 GMT 2003
>Number: 9209
>Category: c
>Synopsis: cc allows dollars in identifiers by default on i386 but fails
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 06 15:06:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: 121269@bugs.debian.org
>Release: gcc-3.3 branch 20021231
>Organization:
>Environment:
i386-linux
>Description:
[ Reported to the Debian BTS as report #121269.
Please CC 121269@bugs.debian.org on replies.
Log of report can be found at http://bugs.debian.org/121269 ]
this changed from gcc-2.95 to gcc-3.x. Even when using -Wall, -fno-dollars-in-identifiers doesn't warn about dollars in identifiers and does not give any error messages.
$ gcc-2.95 -fno-dollars-in-identifiers bug-121269.c
bug-121269.c:1: `$' in identifier
bug-121269.c: In function `main':
bug-121269.c:4: `$' in identifier
bug-121269.c:4: `$' in identifier
bug-121269.c:4: `$' in identifier
bug-121269.c:6: `$' in identifier
$ gcc-3.2 -fno-dollars-in-identifiers bug-121269.c
/tmp/ccpP3lr8.s: Assembler messages:
/tmp/ccpP3lr8.s:15: Error: suffix or operands invalid for `mov'
/tmp/ccpP3lr8.s:17: Error: suffix or operands invalid for `cmp'
/tmp/ccpP3lr8.s:26: Error: suffix or operands invalid for `inc'
-------------
int $b;
main()
{
for($b=0;$b<10;$b++)
{
printf("%d\n",$b);
}
}
-------------
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list