Bug#121269: gcc allows dollars in identifiers by default on i386 but fails
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;$b<10;$b++)
{
printf("%d\n",$b);
}
}
EOF
% gcc bug.c
/tmp/cc2uXoLV.s: Assembler messages:
/tmp/cc2uXoLV.s:16: Error: suffix or operands invalid for `mov'
/tmp/cc2uXoLV.s:19: Error: suffix or operands invalid for `cmp'
/tmp/cc2uXoLV.s:31: Error: suffix or operands invalid for `inc'
This fails with both woody gcc-2.95 and gcc-3.0, and potato gcc.
potato gcc272 reject dollars in identifier by default.
gcc272 -fdollars-in-identifiers fails.
The default for gcc on i386 should be set to reject dollars in identifiers.
Best regards,
-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux yellowpig 2.2.19 #1 Tue Apr 24 20:02:21 CEST 2001 i686
Locale: LANG=french, LC_CTYPE=french
Versions of packages gcc depends on:
ii cpp 2:2.95.4-8 The GNU C preprocessor.
ii cpp-2.95 1:2.95.4-0.011006 The GNU C preprocessor.
ii gcc-2.95 1:2.95.4-0.011006 The GNU C compiler.
--
Bill. <ballombe@debian.org>
Reply to: