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]

Fix for bogus warning for -dD, etc.


I got tired of seeing the unrecognized gcc debugging option when I
used -dD in conjunction with -save-temps, so I applied the following
patch:

Mon Dec 21 17:39:38 1998  Michael Meissner  <meissner@cygnus.com>

	* toplev.c (main): Don't emit any warnings when using -dD, -dM, or
	-dI, which are handled by the preprocessor.

*** gcc/toplev.c.~1~	Thu Dec 17 19:43:51 1998
--- gcc/toplev.c	Mon Dec 21 17:39:10 1998
*************** main (argc, argv)
*** 4786,4791 ****
--- 4786,4795 ----
  		  case 'x':
  		    rtl_dump_and_exit = 1;
  		    break;
+ 		  case 'D':	/* these are handled by the preprocessor */
+ 		  case 'I':
+ 		  case 'M':
+ 		    break;
  		  default:
  		    warning ("unrecognised gcc debugging option: %c", p[-1]);
  		    break;

-- 
Michael Meissner, Cygnus Solutions (Massachusetts office)
4th floor, 955 Massachusetts Avenue, Cambridge, MA 02139, USA
meissner@cygnus.com,	617-354-5416 (office),	617-354-7161 (fax)


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