From patchwork Wed Dec 4 07:49:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 296423 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 1533F2C00A9 for ; Wed, 4 Dec 2013 18:49:55 +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:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=FroGXPV4/25OHgLuh6yCMi9oP80ZbTL701RpNRsdW2MTgrgeRF DCgf6j38gXX3+EM/c81Az3ci8RNK99En+9++59AtyuJOX2zehU4cRRicbOFJQXwo 1TEdbGO6IUY/STzmtkT8Uurd8vgWCBswd2APxEKbPACqfBEIEI5sW/p7Y= 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:cc:subject:message-id:mime-version:content-type; s= default; bh=JKepCMvC9MAY+eL/L/bXM7tOCoc=; b=PyQy+puOeswE4O/ZYUZA Hz2uAq9XHEZSFZ5QQPj+AMBWMgGzQFlZG8tTNBMkVtRLjfg5PbOnwxCKXZ+h73VA Wbm6BY1LfIlqLn7EpVhlPlV0rz1D/dN9YSbQbH7TtssYAWaPiEBfFpfVGQHWe9PM bFMitbXM6NR8xe5DE50OXak= Received: (qmail 21757 invoked by alias); 4 Dec 2013 07:49:45 -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 21741 invoked by uid 89); 4 Dec 2013 07:49:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=BAYES_50, RDNS_NONE, URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: hall.aurel32.net Received: from Unknown (HELO hall.aurel32.net) (195.154.112.97) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 04 Dec 2013 07:49:43 +0000 Received: from [2001:470:d4ed:0:5e26:aff:fe2b:6f5b] (helo=volta.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Vo7DB-0004gb-NW; Wed, 04 Dec 2013 08:49:33 +0100 Received: from aurel32 by volta.rr44.fr with local (Exim 4.80) (envelope-from ) id 1Vo7DA-0007pD-IH; Wed, 04 Dec 2013 08:49:32 +0100 Date: Wed, 4 Dec 2013 08:49:32 +0100 From: Aurelien Jarno To: gcc-patches@gcc.gnu.org Cc: "David S. Miller" Subject: [PATCH] Fix --with-long-double-128 for sparc32 when defaulting to 64-bit Message-ID: <20131204074932.GA29479@volta.rr44.fr> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) On sparc, the --with-long-double-128 option doesn't change anything for a 64-bit compiler, as it always default to 128-bit long doubles. For a 32/64-bit compiler defaulting to 32-bit this correctly control the size of long double of the 32-bit compiler, however for a 32/64-bit compiler defaulting to 64-bit, the built-in specs force the -mlong-double-64 option. This makes the option useless in this case. The patch below fixes that by removing the -mlong-double-64 from the built-in spec, using the default instead. Changelog gcc/ 2013-12-04 Aurelien Jarno * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit, don't force -mlong-double-64 when -m32 or -mv8plus is given. Index: gcc/config/sparc/linux64.h =================================================================== --- gcc/config/sparc/linux64.h (revision 205647) +++ gcc/config/sparc/linux64.h (working copy) @@ -162,9 +162,9 @@ #else #define CC1_SPEC "%{profile:-p} \ %{m32:%{m64:%emay not use both -m32 and -m64}} \ -%{m32:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \ +%{m32:-mptr32 -mno-stack-bias \ %{!mcpu*:-mcpu=cypress}} \ -%{mv8plus:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \ +%{mv8plus:-mptr32 -mno-stack-bias \ %{!mcpu*:-mcpu=v9}} \ %{!m32:%{!mcpu*:-mcpu=ultrasparc}} \ %{!mno-vis:%{!m32:%{!mcpu=v9:-mvis}}} \