This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix for bogus warning for -dD, etc.
- To: egcs-patches at cygnus dot com
- Subject: Fix for bogus warning for -dD, etc.
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Mon, 21 Dec 1998 17:44:55 -0500
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)