From patchwork Thu Oct 18 03:06:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 192176 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 34D912C0089 for ; Thu, 18 Oct 2012 14:06:47 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1351134408; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition: User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=nQlBJRZ i9OE2NkoRxA9/+IIvxBM=; b=I73ZQ6tHNEiceT+d9FN4Oc94Jph2KDPADAMrlvC ML0JR1Rj7Z/9jZiXZqMgZI3sMm7bpabQkPaCEqwR+vkONw+n11pDmBq03F6NaUa0 eyO1z0aR9wGc1tYjxTCcyfHUZhEvjBNg9erKirn9H3FUYDxw3DTkiln9tMofAnZ0 Jg9Y= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=wVzvLzG1xcbsedopIY1wCJofsIx8cIHU9GeP4iSh/8pQRs1swy/GPGiS3ZX1/L mVuHN3pShcPAH+L/JVG3x/oZt4QlLPyC1a8DL+Swb92beXwx5itqW3SWjTJ7wdRb 0Ea/ZTXLqy3ii1GJkq63/rNqxImgimXjZ3fP0PcwakOQ8=; Received: (qmail 21190 invoked by alias); 18 Oct 2012 03:06:41 -0000 Received: (qmail 21182 invoked by uid 22791); 18 Oct 2012 03:06:40 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pb0-f47.google.com (HELO mail-pb0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Oct 2012 03:06:33 +0000 Received: by mail-pb0-f47.google.com with SMTP id ro12so7992686pbb.20 for ; Wed, 17 Oct 2012 20:06:32 -0700 (PDT) Received: by 10.68.209.200 with SMTP id mo8mr62055982pbc.102.1350529592814; Wed, 17 Oct 2012 20:06:32 -0700 (PDT) Received: from bubble.grove.modra.org ([101.166.26.37]) by mx.google.com with ESMTPS id nz6sm13457345pbb.50.2012.10.17.20.06.30 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Oct 2012 20:06:32 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 9E95DEA2C26; Thu, 18 Oct 2012 13:36:27 +1030 (CST) Date: Thu, 18 Oct 2012 13:36:27 +1030 From: Alan Modra To: gcc-patches@gcc.gnu.org Cc: David Edelsohn Subject: building gcc with powerpc gold Message-ID: <20121018030627.GQ4541@bubble.grove.modra.org> Mail-Followup-To: gcc-patches@gcc.gnu.org, David Edelsohn MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 These two tests currently fail if using gold, in the first instance because powerpc64 gold doesn't support mixing old dot-sym objects with new objects, and in the second instance because gold doesn't have a --no-toc-sort option. Both macros ought to be defined for gold. Tested etc. OK to apply everywhere? * configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold. (HAVE_LD_LARGE_TOC): Likewise. * configure: Regenerate. Index: gcc/configure.ac =================================================================== --- gcc/configure.ac (revision 192236) +++ gcc/configure.ac (working copy) @@ -4379,7 +4379,9 @@ AC_CACHE_CHECK(linker support for omitting dot symbols, gcc_cv_ld_no_dot_syms, [gcc_cv_ld_no_dot_syms=no - if test $in_tree_ld = yes ; then + if test x"$ld_is_gold" = xyes; then + gcc_cv_ld_no_dot_syms=yes + elif test $in_tree_ld = yes ; then if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then gcc_cv_ld_no_dot_syms=yes fi @@ -4416,7 +4418,9 @@ AC_CACHE_CHECK(linker large toc support, gcc_cv_ld_large_toc, [gcc_cv_ld_large_toc=no - if test $in_tree_ld = yes ; then + if test x"$ld_is_gold" = xyes; then + gcc_cv_ld_large_toc=yes + elif test $in_tree_ld = yes ; then if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then gcc_cv_ld_large_toc=yes fi