From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17343 invoked by alias); 14 Jan 2011 00:11:41 -0000 Received: (qmail 17329 invoked by uid 22791); 14 Jan 2011 00:11:35 -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:11:30 +0000 Received: (qmail 13907 invoked from network); 14 Jan 2011 00:11:28 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 14 Jan 2011 00:11:28 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1PdXGJ-0002RK-8Z; Fri, 14 Jan 2011 00:11:27 +0000 Date: Fri, 14 Jan 2011 00:13:00 -0000 From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org cc: echristo@apple.com, rdsandiford@googlemail.com Subject: [13/25] Specs cleanup: MIPS -bestGnum -no_archive -exact_version 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/msg00905.txt.bz2 Various MIPS targets have specs passing options -bestGnum -no_archive -exact_version to the linker. The GNU linker has no such options, so these specs are useless whenever the GNU linker is used, which covers all MIPS targets except IRIX. (I don't know if the IRIX linker has such options.) This patch removes these specs for all non-IRIX targets. OK to commit? 2011-01-13 Joseph Myers * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum} %{no_archive} %{exact_version}. * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}. * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum} %{no_archive} %{exact_version}. * config/mips/openbsd.h (LINK_SPEC): Likewise. * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}. * config/mips/vxworks.h: Likewise. diff -rupN --exclude=.svn gcc-mainline-12/gcc/config/mips/linux64.h gcc-mainline/gcc/config/mips/linux64.h --- gcc-mainline-12/gcc/config/mips/linux64.h 2011-01-12 14:07:22.000000000 -0800 +++ gcc-mainline/gcc/config/mips/linux64.h 2011-01-12 14:28:26.000000000 -0800 @@ -47,8 +47,8 @@ along with GCC; see the file COPYING3. #undef LINK_SPEC #define LINK_SPEC "\ %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} \ -%{bestGnum} %{shared} %{non_shared} \ -%{call_shared} %{no_archive} %{exact_version} \ +%{shared} %{non_shared} \ +%{call_shared} \ %(endian_spec) \ %{!shared: \ %{!static: \ diff -rupN --exclude=.svn gcc-mainline-12/gcc/config/mips/mips.h gcc-mainline/gcc/config/mips/mips.h --- gcc-mainline-12/gcc/config/mips/mips.h 2011-01-12 14:13:10.000000000 -0800 +++ gcc-mainline/gcc/config/mips/mips.h 2011-01-12 14:28:43.000000000 -0800 @@ -1145,14 +1145,12 @@ enum mips_code_readable_setting { %(subtarget_asm_spec)" /* Extra switches sometimes passed to the linker. */ -/* ??? The bestGnum will never be passed to the linker, because the gcc driver - will interpret it as a -b option. */ #ifndef LINK_SPEC #define LINK_SPEC "\ %(endian_spec) \ %{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32*} %{mips64*} \ -%{bestGnum} %{shared} %{non_shared}" +%{shared} %{non_shared}" #endif /* LINK_SPEC defined */ diff -rupN --exclude=.svn gcc-mainline-12/gcc/config/mips/netbsd.h gcc-mainline/gcc/config/mips/netbsd.h --- gcc-mainline-12/gcc/config/mips/netbsd.h 2010-12-06 06:40:24.000000000 -0800 +++ gcc-mainline/gcc/config/mips/netbsd.h 2011-01-12 14:29:00.000000000 -0800 @@ -148,7 +148,7 @@ along with GCC; see the file COPYING3. %{EB:-m elf32bmip} \ %(endian_spec) \ %{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips32r2} %{mips64} \ - %{bestGnum} %{call_shared} %{no_archive} %{exact_version} \ + %{call_shared} \ %(netbsd_link_spec)" #define NETBSD_ENTRY_POINT "__start" diff -rupN --exclude=.svn gcc-mainline-12/gcc/config/mips/openbsd.h gcc-mainline/gcc/config/mips/openbsd.h --- gcc-mainline-12/gcc/config/mips/openbsd.h 2010-12-09 05:38:56.000000000 -0800 +++ gcc-mainline/gcc/config/mips/openbsd.h 2011-01-12 14:29:13.000000000 -0800 @@ -77,8 +77,8 @@ along with GCC; see the file COPYING3. #undef LINK_SPEC #define LINK_SPEC \ "%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} \ - %{bestGnum} %{shared} %{non_shared} \ - %{call_shared} %{no_archive} %{exact_version} \ + %{shared} %{non_shared} \ + %{call_shared} \ %{!shared: %{!non_shared: %{!call_shared: -non_shared}}} \ -dynamic-linker /usr/libexec/ld.so \ %{!nostdlib:%{!r:%{!e*:-e __start}}} -dc -dp \ diff -rupN --exclude=.svn gcc-mainline-12/gcc/config/mips/sde.h gcc-mainline/gcc/config/mips/sde.h --- gcc-mainline-12/gcc/config/mips/sde.h 2010-11-19 13:26:11.000000000 -0800 +++ gcc-mainline/gcc/config/mips/sde.h 2011-01-12 14:29:25.000000000 -0800 @@ -59,7 +59,6 @@ along with GCC; see the file COPYING3. #define LINK_SPEC "\ %(endian_spec) \ %{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32*} %{mips64*} \ -%{bestGnum} \ %{shared} %{non_shared} %{call_shared} \ %{mabi=n32:-melf32%{EB:b}%{EL:l}tsmipn32} \ %{mabi=64:-melf64%{EB:b}%{EL:l}tsmip} \ diff -rupN --exclude=.svn gcc-mainline-12/gcc/config/mips/vxworks.h gcc-mainline/gcc/config/mips/vxworks.h --- gcc-mainline-12/gcc/config/mips/vxworks.h 2010-12-20 13:11:12.000000000 -0800 +++ gcc-mainline/gcc/config/mips/vxworks.h 2011-01-12 14:31:48.000000000 -0800 @@ -35,8 +35,7 @@ along with GCC; see the file COPYING3. #undef LINK_SPEC #define LINK_SPEC "\ %(endian_spec) \ -%{!G:-G 0} %{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64} \ -%{bestGnum}" \ +%{!G:-G 0} %{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64} " \ VXWORKS_LINK_SPEC #undef LIB_SPEC -- Joseph S. Myers joseph@codesourcery.com