From patchwork Mon Jun 21 17:00:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 56332 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id D6BA4B6F19 for ; Tue, 22 Jun 2010 03:01:09 +1000 (EST) Received: (qmail 18880 invoked by alias); 21 Jun 2010 17:01:06 -0000 Received: (qmail 18714 invoked by uid 22791); 21 Jun 2010 17:01:04 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, TW_BJ, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 21 Jun 2010 17:01:00 +0000 Received: (qmail 27860 invoked from network); 21 Jun 2010 17:00:58 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 21 Jun 2010 17:00:58 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.69) (envelope-from ) id 1OQkMj-0006AR-Fs for gcc-patches@gcc.gnu.org; Mon, 21 Jun 2010 17:00:57 +0000 Date: Mon, 21 Jun 2010 17:00:57 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org Subject: Remove -lang-objc option Message-ID: MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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. 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;