From patchwork Fri Jan 14 00:03:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 78830 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 4B062B70CC for ; Fri, 14 Jan 2011 11:03:53 +1100 (EST) Received: (qmail 10167 invoked by alias); 14 Jan 2011 00:03:50 -0000 Received: (qmail 10157 invoked by uid 22791); 14 Jan 2011 00:03:50 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, 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; Fri, 14 Jan 2011 00:03:44 +0000 Received: (qmail 11214 invoked from network); 14 Jan 2011 00:03:43 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 14 Jan 2011 00:03:43 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1PdX8n-0002Ny-QW; Fri, 14 Jan 2011 00:03:41 +0000 Date: Fri, 14 Jan 2011 00:03:41 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org cc: nickc@redhat.com, richard.earnshaw@arm.com, paul@codesourcery.com Subject: [03/25] Specs cleanup: -version 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 The option -version (single leading '-') is an option to the core compiler (cc1 etc.) only, generated from the driver -v option and marked RejectDriver in common.opt. As such, it does not make sense for specs to patch it; this patch removes two specs doing so. OK to commit? 2011-01-13 Joseph Myers * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{version:-v}. * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise. diff -rupN --exclude=.svn gcc-mainline-2/gcc/config/arm/linux-elf.h gcc-mainline/gcc/config/arm/linux-elf.h --- gcc-mainline-2/gcc/config/arm/linux-elf.h 2011-01-12 13:52:52.000000000 -0800 +++ gcc-mainline/gcc/config/arm/linux-elf.h 2011-01-12 13:59:36.000000000 -0800 @@ -64,7 +64,7 @@ #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" -#define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \ +#define LINUX_TARGET_LINK_SPEC "%{h*} \ %{static:-Bstatic} \ %{shared:-shared} \ %{symbolic:-Bsymbolic} \ diff -rupN --exclude=.svn gcc-mainline-2/gcc/config/lm32/uclinux-elf.h gcc-mainline/gcc/config/lm32/uclinux-elf.h --- gcc-mainline-2/gcc/config/lm32/uclinux-elf.h 2010-12-09 05:38:53.000000000 -0800 +++ gcc-mainline/gcc/config/lm32/uclinux-elf.h 2011-01-12 13:59:50.000000000 -0800 @@ -67,7 +67,7 @@ "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s" #undef LINK_SPEC -#define LINK_SPEC "%{h*} %{version:-v} \ +#define LINK_SPEC "%{h*} \ %{static:-Bstatic} \ %{shared:-shared} \ %{symbolic:-Bsymbolic} \