From patchwork Mon Feb 7 09:28:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 82086 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 67113B7107 for ; Mon, 7 Feb 2011 20:28:28 +1100 (EST) Received: (qmail 15290 invoked by alias); 7 Feb 2011 09:28:25 -0000 Received: (qmail 15280 invoked by uid 22791); 7 Feb 2011 09:28:23 -0000 X-SWARE-Spam-Status: No, hits=-0.0 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtprelay03.ispgateway.de (HELO smtprelay03.ispgateway.de) (80.67.31.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Feb 2011 09:28:18 +0000 Received: from [87.180.94.8] (helo=stokes.schwinge.homeip.net) by smtprelay03.ispgateway.de with esmtpa (Exim 4.68) (envelope-from ) id 1PmNOJ-0003sX-V6 for gcc-patches@gcc.gnu.org; Mon, 07 Feb 2011 10:28:16 +0100 Received: (qmail 10013 invoked from network); 7 Feb 2011 09:28:11 -0000 Received: from kepler.schwinge.homeip.net (192.168.111.7) by stokes.schwinge.homeip.net with QMQP; 7 Feb 2011 09:28:11 -0000 Received: (nullmailer pid 21394 invoked by uid 1000); Mon, 07 Feb 2011 09:28:11 -0000 From: Thomas Schwinge To: Roland McGrath Cc: "Joseph S\. Myers" , gcc-patches@gcc.gnu.org, Thomas Bushnell , Samuel Thibault Subject: Re: Add GNU -bsd option from specs to new gnu.opt In-Reply-To: <20110207055553.8F35B2C12E@topped-with-meat.com> References: <20110207001329.GA2529@dirichlet.schwinge.homeip.net> <20110207055553.8F35B2C12E@topped-with-meat.com> User-Agent: Notmuch/0.5-33-g665f77b (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Mon, 07 Feb 2011 10:28:10 +0100 Message-ID: <871v3kchxx.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 X-Df-Sender: thomas@schwinge.name 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 Hallo! On Sun, 6 Feb 2011 21:55:53 -0800 (PST), Roland McGrath wrote: > I don't think we need to support a -bsd command-line option. Here is a patch. OK to commit? I will continue to see whether the GNU/Hurd spec files can be simplified / streamlined. gcc/ 2011-02-07 Thomas Schwinge * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option. * i386/config/gnu.h (CPP_SPEC): Likewise. --- gcc/config/gnu.h | 6 +++--- gcc/config/i386/gnu.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/gnu.h b/gcc/config/gnu.h index 1299376..db9d63c 100644 --- a/gcc/config/gnu.h +++ b/gcc/config/gnu.h @@ -22,11 +22,11 @@ along with GCC. If not, see . /* Provide GCC options for standard feature-test macros. */ #undef CPP_SPEC -#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}" +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}" -/* Default C library spec. Use -lbsd-compat for gcc -bsd. */ +/* Default C library spec. */ #undef LIB_SPEC -#define LIB_SPEC "%{pthread:-lpthread} %{bsd:-lbsd-compat} %{pg|p|profile:-lc_p;:-lc}" +#define LIB_SPEC "%{pthread:-lpthread} %{pg|p|profile:-lc_p;:-lc}" /* Standard include directory. In GNU, "/usr" is a four-letter word. */ #undef STANDARD_INCLUDE_DIR diff --git a/gcc/config/i386/gnu.h b/gcc/config/i386/gnu.h index 077933b..2ce6aea 100644 --- a/gcc/config/i386/gnu.h +++ b/gcc/config/i386/gnu.h @@ -27,7 +27,7 @@ along with GCC. If not, see . #define TARGET_VERSION fprintf (stderr, " (i386 GNU)"); #undef CPP_SPEC -#define CPP_SPEC "%{pthread:-D_REENTRANT} %{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}" +#define CPP_SPEC "%{pthread:-D_REENTRANT} %{posix:-D_POSIX_SOURCE}" #undef CC1_SPEC #define CC1_SPEC "%(cc1_cpu)"