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]

RFA: Don't skip 'Y' prefix in switches


This is an undocumented feature of switch processing that doesn't have
an explanation and appears pointless.  We treat most (not all) options
-Ywhatever as -whatever.

OK to remove it on a successful bootstrap/check?

Neil.

	* toplev.c (independent_decode_option): Don't skip a 'Y' prefix.

Index: toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.736
diff -u -p -r1.736 toplev.c
--- toplev.c	20 Mar 2003 16:43:18 -0000	1.736
+++ toplev.c	23 Mar 2003 21:49:16 -0000
@@ -4465,9 +4465,6 @@ independent_decode_option (argc, argv)
       return 2;
     }
 
-  if (*arg == 'Y')
-    arg++;
-
   switch (*arg)
     {
     default:


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