Remove -lang-objc option
diff mbox

Message ID
State New
Headers show

Commit Message

Joseph Myers June 21, 2010, 5 p.m. UTC
I noticed that the C-family front ends had an option -lang-objc that
was never generated or passed down from the driver by specs and so had
no useful purpose (its effect was only to set ObjC mode in the
preprocessor).  This patch removes this option.

Bootstrapped with no regressions on x86_64-unknown-linux-gnu.  Applied
to mainline.

2010-06-21  Joseph Myers  <>

	* c.opt (lang-objc): Remove.
	* c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.

diff mbox

Index: c-family/c.opt
--- c-family/c.opt	(revision 161065)
+++ c-family/c.opt	(working copy)
@@ -928,9 +928,6 @@  C ObjC C++ ObjC++ Joined Separate
 C Undocumented
-C ObjC C++ ObjC++ Undocumented
 C ObjC C++ ObjC++
 Do not search standard system include directories (those specified with -isystem will still be used)
Index: c-family/c-opts.c
--- c-family/c-opts.c	(revision 161065)
+++ c-family/c-opts.c	(working copy)
@@ -841,10 +841,6 @@  c_common_handle_option (size_t scode, co
       cpp_opts->dollars_in_ident = false;
-    case OPT_lang_objc:
-      cpp_opts->objc = 1;
-      break;
     case OPT_nostdinc:
       std_inc = false;