From patchwork Thu Dec 2 16:37:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 73997 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 D74A9B6F10 for ; Fri, 3 Dec 2010 03:37:49 +1100 (EST) Received: (qmail 4455 invoked by alias); 2 Dec 2010 16:37:47 -0000 Received: (qmail 4218 invoked by uid 22791); 2 Dec 2010 16:37:44 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, TW_RV, 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; Thu, 02 Dec 2010 16:37:38 +0000 Received: (qmail 21502 invoked from network); 2 Dec 2010 16:37:37 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 2 Dec 2010 16:37:37 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1POCA3-0007Wd-Rs for gcc-patches@gcc.gnu.org; Thu, 02 Dec 2010 16:37:35 +0000 Date: Thu, 2 Dec 2010 16:37:35 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org Subject: [9/9] Specs cleanup: -b In-Reply-To: Message-ID: References: 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 Until it was removed, -b was a GCC option to cause the driver to run GCC for a different target. It was never handled by specs and since it was removed it's best that it gives an error as an unknown option. This patch removes it from various specs that would have passed it to the linker. 2010-12-02 Joseph Myers * config/bfin/bfin.h (LINK_SPEC): Remove %{b}. * config/frv/frv.h (LINK_SPEC): Remove %{b}. * config/i386/netware.h (LINK_SPEC): Remove %{b}. * config/i386/nto.h (LINK_SPEC): Remove %{b}. * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}. * config/sol2.h (LINK_SPEC): Remove %{b}. * config/svr4.h (LINK_SPEC): Remove %{b}. diff -rupN --exclude=.svn gcc-mainline-8/gcc/config/bfin/bfin.h gcc-mainline/gcc/config/bfin/bfin.h --- gcc-mainline-8/gcc/config/bfin/bfin.h 2010-12-01 17:40:18.000000000 -0800 +++ gcc-mainline/gcc/config/bfin/bfin.h 2010-12-01 18:08:02.000000000 -0800 @@ -253,7 +253,6 @@ extern unsigned int bfin_workarounds; #define LINK_SPEC "\ %{h*} %{v:-V} \ -%{b} \ %{mfdpic:-melf32bfinfd -z text} \ %{static:-dn -Bstatic} \ %{shared:-G -Bdynamic} \ diff -rupN --exclude=.svn gcc-mainline-8/gcc/config/frv/frv.h gcc-mainline/gcc/config/frv/frv.h --- gcc-mainline-8/gcc/config/frv/frv.h 2010-12-01 17:40:54.000000000 -0800 +++ gcc-mainline/gcc/config/frv/frv.h 2010-12-01 18:08:13.000000000 -0800 @@ -160,7 +160,6 @@ #undef LINK_SPEC #define LINK_SPEC "\ %{h*} %{v:-V} \ -%{b} \ %{mfdpic:-melf32frvfd -z text} \ %{static:-dn -Bstatic} \ %{shared:-Bdynamic} \ diff -rupN --exclude=.svn gcc-mainline-8/gcc/config/i386/netware.h gcc-mainline/gcc/config/i386/netware.h --- gcc-mainline-8/gcc/config/i386/netware.h 2010-12-01 17:58:33.000000000 -0800 +++ gcc-mainline/gcc/config/i386/netware.h 2010-12-01 18:08:24.000000000 -0800 @@ -32,7 +32,6 @@ along with GCC; see the file COPYING3. /* Kinda useless, but what the hell */ #undef LINK_SPEC #define LINK_SPEC "%{h*} %{v:-V} \ - %{b} \ %{Qy:} %{!Qn:-Qy}" #undef STARTFILE_SPEC diff -rupN --exclude=.svn gcc-mainline-8/gcc/config/i386/nto.h gcc-mainline/gcc/config/i386/nto.h --- gcc-mainline-8/gcc/config/i386/nto.h 2010-10-08 08:19:51.000000000 -0700 +++ gcc-mainline/gcc/config/i386/nto.h 2010-12-01 18:08:58.000000000 -0800 @@ -1,5 +1,5 @@ /* Definitions for Intel 386 running QNX/Neutrino. - Copyright (C) 2002, 2003, 2007 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2007, 2010 Free Software Foundation, Inc. This file is part of GCC. @@ -64,7 +64,6 @@ crti.o%s \ #undef LINK_SPEC #define LINK_SPEC \ "%{h*} %{v:-V} \ - %{b} \ %{static:-dn -Bstatic} \ %{shared:-G -dy -z text} \ %{symbolic:-Bsymbolic -G -dy -z text} \ diff -rupN --exclude=.svn gcc-mainline-8/gcc/config/lm32/uclinux-elf.h gcc-mainline/gcc/config/lm32/uclinux-elf.h --- gcc-mainline-8/gcc/config/lm32/uclinux-elf.h 2010-12-01 17:09:15.000000000 -0800 +++ gcc-mainline/gcc/config/lm32/uclinux-elf.h 2010-12-01 18:09:19.000000000 -0800 @@ -68,7 +68,6 @@ #undef LINK_SPEC #define LINK_SPEC "%{h*} %{version:-v} \ - %{b} \ %{static:-Bstatic} \ %{shared:-shared} \ %{symbolic:-Bsymbolic} \ diff -rupN --exclude=.svn gcc-mainline-8/gcc/config/sol2.h gcc-mainline/gcc/config/sol2.h --- gcc-mainline-8/gcc/config/sol2.h 2010-12-01 16:52:05.000000000 -0800 +++ gcc-mainline/gcc/config/sol2.h 2010-12-01 18:07:45.000000000 -0800 @@ -175,7 +175,6 @@ along with GCC; see the file COPYING3. #undef LINK_SPEC #define LINK_SPEC \ "%{h*} %{v:-V} \ - %{b} \ %{!shared:%{!static:%{rdynamic: " RDYNAMIC_SPEC "}}} \ %{static:-dn -Bstatic} \ %{shared:-G -dy %{!mimpure-text:-z text}} \ diff -rupN --exclude=.svn gcc-mainline-8/gcc/config/svr4.h gcc-mainline/gcc/config/svr4.h --- gcc-mainline-8/gcc/config/svr4.h 2010-12-01 17:38:50.000000000 -0800 +++ gcc-mainline/gcc/config/svr4.h 2010-12-01 18:10:46.000000000 -0800 @@ -112,7 +112,7 @@ see the files COPYING3 and COPYING.RUNTI support here for as many of the other svr4 linker options as seems reasonable, given that some of them conflict with options for other svr4 tools (e.g. the assembler). In particular, we do support the - -z*, -V, -b, -t, -Qy, -Qn, and -YP* options here, and the -e*, -l*, + -z*, -V, -t, -Qy, -Qn, and -YP* options here, and the -e*, -l*, -o*, -r, -s, -u*, and -L* options are directly supported by gcc.c itself. We don't directly support the -m (generate load map) option because that conflicts with the -m (run m4) option of the @@ -131,7 +131,6 @@ see the files COPYING3 and COPYING.RUNTI #undef LINK_SPEC #ifdef CROSS_DIRECTORY_STRUCTURE #define LINK_SPEC "%{h*} %{v:-V} \ - %{b} \ %{static:-dn -Bstatic} \ %{shared:-G -dy -z text} \ %{symbolic:-Bsymbolic -G -dy -z text} \ @@ -140,7 +139,6 @@ see the files COPYING3 and COPYING.RUNTI %{Qy:} %{!Qn:-Qy}" #else #define LINK_SPEC "%{h*} %{v:-V} \ - %{b} \ %{static:-dn -Bstatic} \ %{shared:-G -dy -z text} \ %{symbolic:-Bsymbolic -G -dy -z text} \