Patchwork Remove -lang-objc option

login
register
mail settings
Submitter Joseph S. Myers
Date June 21, 2010, 5 p.m.
Message ID <Pine.LNX.4.64.1006211700240.22836@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/56332/
State New
Headers show

Comments

Joseph S. Myers - June 21, 2010, 5 p.m.
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  <joseph@codesourcery.com>

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

Patch

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
 lang-asm
 C Undocumented
 
-lang-objc
-C ObjC C++ ObjC++ Undocumented
-
 nostdinc
 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;
       break;
 
-    case OPT_lang_objc:
-      cpp_opts->objc = 1;
-      break;
-
     case OPT_nostdinc:
       std_inc = false;
       break;