[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
host: i386-linux
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2.2 20021212 (Debian prerelease)
>Description:
[ submitting for the second time, I do not see in gnats yet]

[ 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: