This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cpplib: Remove -$


As recently approved by rth.  The only user I'm aware of was
cp/lang-specs.h, and that disappeared with my C++ specs cleanup.

Neil.

	* cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
	(cpp_handle_option): Don't handle it.
	(print_help): Update.
	* doc/cppopts.texi: Update.

Index: cppinit.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cppinit.c,v
retrieving revision 1.246
diff -u -p -r1.246 cppinit.c
--- cppinit.c	23 Jul 2002 22:57:44 -0000	1.246
+++ cppinit.c	1 Aug 2002 06:30:05 -0000
@@ -1135,7 +1135,6 @@ new_pending_directive (pend, text, handl
 /* This is the list of all command line options, with the leading
    "-" removed.  It must be sorted in ASCII collating order.  */
 #define COMMAND_LINE_OPTIONS                                                  \
-  DEF_OPT("$",                        0,      OPT_dollar)                     \
   DEF_OPT("-help",                    0,      OPT__help)                      \
   DEF_OPT("-target-help",             0,      OPT_target__help)               \
   DEF_OPT("-version",                 0,      OPT__version)                   \
@@ -1415,9 +1414,6 @@ cpp_handle_option (pfile, argc, argv)
 	case OPT_P:
 	  CPP_OPTION (pfile, no_line_commands) = 1;
 	  break;
-	case OPT_dollar:	/* Don't include $ in identifiers.  */
-	  CPP_OPTION (pfile, dollars_in_ident) = 0;
-	  break;
 	case OPT_H:
 	  CPP_OPTION (pfile, print_include_names) = 1;
 	  break;
@@ -1980,7 +1976,6 @@ Switches:\n\
   -fpreprocessed            Treat the input file as already preprocessed\n\
   -ftabstop=<number>        Distance between tab stops for column reporting\n\
   -P                        Do not generate #line directives\n\
-  -$                        Do not allow '$' in identifiers\n\
   -remap                    Remap file names when including files\n\
   --version                 Display version information\n\
   -h or --help              Display this information\n\
Index: doc/cppopts.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/cppopts.texi,v
retrieving revision 1.10
diff -u -p -r1.10 cppopts.texi
--- doc/cppopts.texi	26 Jul 2002 16:34:09 -0000	1.10
+++ doc/cppopts.texi	1 Aug 2002 06:30:05 -0000
@@ -607,12 +607,6 @@ Replacement:      [    ]    @{    @}    
 Enable special code to work around file systems which only permit very
 short file names, such as MS-DOS@.
 
-@item -$
-@opindex $
-Forbid the use of @samp{$} in identifiers.  The C standard allows
-implementations to define extra characters that can appear in
-identifiers.  By default GNU CPP permits @samp{$}, a common extension.
-
 @item -h
 @itemx --help
 @itemx --target-help


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]