From patchwork Tue Apr 19 15:08:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 612203 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)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qq7h80qbGz9sCj for ; Wed, 20 Apr 2016 01:08:55 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=k9x+K85O; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; q=dns; s=default; b=Jerdmkmtr1idVKn9E4nZz6aPLHzZ/xyPeeU2/B76YFD oqOf4TpyK7aA2e4FVAmlsuYynU4URSW8Xeals1lBd0sLW9v3+/Nx28+GKeNSXmHQ nsCE3BV3nkC3jeHg0I3c3/Wl/Is98lblkIqQIaVYBOdC9ydMVCqaN6rsXDTQoAps = 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:date :from:to:subject:message-id:reply-to:mime-version:content-type; s=default; bh=1tnR7IhfoebBLk13jByd4AFiJC8=; b=k9x+K85OLLcyE8TkU VUcLgP+jyT1de1i0xr+byBN9Ue0b6DVNbTpcMBTkbsDoYWalbkt1/xZ1h14Z4CPg 0bSVuQ3Vo689JaS1wCCb/R6vffVVDWRD9l49ZGwT1RIsCpCxdsw9qPFuz93YxPyX gas0LTtC/RRftWlpBnQdG1GE7o= Received: (qmail 112217 invoked by alias); 19 Apr 2016 15:08:44 -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 112158 invoked by uid 89); 19 Apr 2016 15:08:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, NO_DNS_FOR_FROM, POKER_BODY, RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*R:D*gmail.com X-HELO: mga04.intel.com Received: from mga04.intel.com (HELO mga04.intel.com) (192.55.52.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 19 Apr 2016 15:08:38 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP; 19 Apr 2016 08:08:10 -0700 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([172.25.70.218]) by fmsmga002.fm.intel.com with ESMTP; 19 Apr 2016 08:08:10 -0700 Received: by gnu-6.sc.intel.com (Postfix, from userid 1000) id 36A9C20027F; Tue, 19 Apr 2016 08:08:10 -0700 (PDT) Date: Tue, 19 Apr 2016 08:08:10 -0700 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: [PATCH] Don't build 32-bit libgomp with -march=i486 on x86-64 Message-ID: <20160419150810.GB7668@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Gcc uses the same -march= for both -m32 and -m64 on x86-64 unless --with-arch-32= is used. There is no need for -march=i486 to compile 32-bit libgomp on x86-64. Tested on x86-64. OK for trunk? H.J. --- PR target/70454 * configure.tgt (XCFLAGS): Don't add -march=i486 to compile 32-bit target library on x86-64. --- libgomp/configure.tgt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt index 77e73f0..a36acc5 100644 --- a/libgomp/configure.tgt +++ b/libgomp/configure.tgt @@ -79,16 +79,10 @@ if test x$enable_linux_futex = xyes; then esac ;; - # Similar jiggery-pokery for x86_64 multilibs, except here we - # can't rely on the --with-arch configure option, since that - # applies to the 64-bit side. x86_64-*-linux*) config_path="linux/x86 linux posix" - case " ${CC} ${CFLAGS} " in - *" -m32 "*) - XCFLAGS="${XCFLAGS} -march=i486 -mtune=generic" - ;; - esac + # Since 64-bit arch > i486, we can use the same -march= to build + # both 32-bit and 64-bit target libraries. ;; # Note that sparcv7 and sparcv8 is not included here. We need cas.