From patchwork Fri Nov 15 17:57:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 291643 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F0FEB2C00A6 for ; Sat, 16 Nov 2013 04:57:26 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=p//slfBSt+Gb/0EQKNKXNi6adENmO+JnklEOValTHLDAPqY1wovZq oY1cop6GxxLXKsHwqjBsyVLZzc95yD1iEwcWF1aRmCAhzZzxEnMi0nhxSr+cHCKc bICcF5/2ADzRRpw7t9AXlntqohLyVDSQX1ua2RLQGA7AXKfKW6HEJw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=HA6A/9hvdEqAVqUKWbaM8neOw0Q=; b=btQexOtM0A8aPAJDhyjp S878J/fhBJKOcjcTriNWW81Ga96Qsv1eE1iYrCW5cFVjaezOvoZfLAVozE5SkYz1 KWfuD1SnTyzgapYei0XwDJdpZ4HUj412Yi6a/Zdcjsf/IlaK7qEyW/SZukCmTlPH n+Aj0diKG7m+K3mO6TtKgjs= Received: (qmail 9061 invoked by alias); 15 Nov 2013 17:57:15 -0000 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 Received: (qmail 9049 invoked by uid 89); 15 Nov 2013 17:57:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=AWL, BAYES_50, RDNS_NONE, URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mail-out.m-online.net Received: from Unknown (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 15 Nov 2013 17:57:13 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3dLnM44bkWz4KK4M for ; Fri, 15 Nov 2013 18:57:04 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3dLnM44FNvzbbmh for ; Fri, 15 Nov 2013 18:57:04 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id rKnrgmnIhczn for ; Fri, 15 Nov 2013 18:57:03 +0100 (CET) X-Auth-Info: GmxKe+xHycz70cJ9f2dQF/x4ScJMn8aXxITbjfr6dP8= Received: from igel.home (ppp-88-217-41-36.dynamic.mnet-online.de [88.217.41.36]) by mail.mnet-online.de (Postfix) with ESMTPA for ; Fri, 15 Nov 2013 18:57:03 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 239A72C1D45; Fri, 15 Nov 2013 18:57:03 +0100 (CET) From: Andreas Schwab To: gcc-patches@gcc.gnu.org Subject: Use default PIC flag on m68k X-Yow: Now I understand the meaning of ``THE MOD SQUAD''! Date: Fri, 15 Nov 2013 18:57:03 +0100 Message-ID: <87fvqx5z0w.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 We want to use -fPIC, not -fpic, for libgcc.a and crt{begin,end}S.o, since they may be linked into a shared library with more then 32K of GOT. Apart from libgcc only libiberty and libada are still using _GCC_PICFLAG instead of libtool, so just remove the special case for m68k. Tested on m68k-suse-linux and installed in trunk. Andreas. config/ * picflag.m4 (m68k-*-*): Use default PIC flag. gcc/ * configure: Regenerate. libada/ * configure: Regenerate. libgcc/ * configure: Regenerate. libiberty/ * configure: Regenerate. diff --git a/config/picflag.m4 b/config/picflag.m4 index 2ee5cd0..3bcdbf1 100644 --- a/config/picflag.m4 +++ b/config/picflag.m4 @@ -50,9 +50,6 @@ case "${$2}" in i[[34567]]86-*-* | x86_64-*-*) $1=-fpic ;; - m68k-*-*) - $1=-fpic - ;; # FIXME: Override -fPIC default in libgcc only? sh-*-linux* | sh[[2346lbe]]*-*-linux*) $1=-fpic