From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26028 invoked by alias); 14 Jan 2011 00:20:10 -0000 Received: (qmail 26020 invoked by uid 22791); 14 Jan 2011 00:20:09 -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:20:04 +0000 Received: (qmail 15914 invoked from network); 14 Jan 2011 00:20:02 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 14 Jan 2011 00:20:02 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1PdXOa-0002UR-UV for gcc-patches@gcc.gnu.org; Fri, 14 Jan 2011 00:20:00 +0000 Date: Fri, 14 Jan 2011 00:23:00 -0000 From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org Subject: [23/25] Specs cleanup: -YP, In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00915.txt.bz2 The -YP, linker option, though accepted by the GNU linker, is essentially an option from certain SysV systems accepted by GCC for compatibility with those systems' native compilers. It makes no sense for GCC to accept it for other operating systems on certain CPUs only; this patch removes such specs for random targets supporting it, leaving those for Solaris and QNX. OK to commit? 2011-01-13 Joseph Myers * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}. * config/frv/frv.h (LINK_SPEC): Likewise. * config/rs6000/sysv4.h (LINK_SPEC): Likewise. diff -rupN --exclude=.svn gcc-mainline-22/gcc/config/bfin/bfin.h gcc-mainline/gcc/config/bfin/bfin.h --- gcc-mainline-22/gcc/config/bfin/bfin.h 2011-01-12 14:01:51.000000000 -0800 +++ gcc-mainline/gcc/config/bfin/bfin.h 2011-01-12 15:16:45.000000000 -0800 @@ -249,7 +249,6 @@ extern unsigned int bfin_workarounds; %{static:-dn -Bstatic} \ %{shared:-G -Bdynamic} \ %{symbolic:-Bsymbolic} \ -%{YP,*} \ %{Qy:} %{!Qn:-Qy} \ -init __init -fini __fini " diff -rupN --exclude=.svn gcc-mainline-22/gcc/config/frv/frv.h gcc-mainline/gcc/config/frv/frv.h --- gcc-mainline-22/gcc/config/frv/frv.h 2011-01-12 14:02:10.000000000 -0800 +++ gcc-mainline/gcc/config/frv/frv.h 2011-01-12 15:16:45.000000000 -0800 @@ -127,7 +127,6 @@ %{shared:-Bdynamic} \ %{symbolic:-Bsymbolic} \ %{G*} \ -%{YP,*} \ %{Qy:} %{!Qn:-Qy}" #undef LIB_SPEC diff -rupN --exclude=.svn gcc-mainline-22/gcc/config/rs6000/sysv4.h gcc-mainline/gcc/config/rs6000/sysv4.h --- gcc-mainline-22/gcc/config/rs6000/sysv4.h 2011-01-12 14:43:03.000000000 -0800 +++ gcc-mainline/gcc/config/rs6000/sysv4.h 2011-01-12 15:17:06.000000000 -0800 @@ -618,7 +618,7 @@ extern int fixuplabelno; #undef LINK_SPEC #define LINK_SPEC "\ %{h*} %{v:-V} %{!msdata=none:%{G*}} %{msdata=none:-G0} \ -%{YP,*} %{R*} \ +%{R*} \ %{Qy:} %{!Qn:-Qy} \ %(link_shlib) \ %{!T*: %(link_start) } \ -- Joseph S. Myers joseph@codesourcery.com