[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gcc -fno-dollars-in-identifiers does not warn about dollars in identifiers



>Submitter-Id:	net
>Originator:	Bill Allombert <ballombe@debian.org>
>Organization:	The Debian Project
>Confidential:	no
>Synopsis:	
>Severity:	non-critical
>Priority:	low
>Category:	c
>Class:		change-request
>Release:	3.2.1 (Debian) (Debian unstable)
>Environment:
System: Debian GNU/Linux (unstable)
Architecture: i686
>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:
	



Reply to: