From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30273 invoked by alias); 25 Nov 2011 12:20:02 -0000 Received: (qmail 30196 invoked by uid 22791); 25 Nov 2011 12:19:59 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from zmta01.irigo.dk (HELO zmta01.irigo.dk) (193.200.44.52) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Nov 2011 12:19:44 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by zmta01.irigo.dk (Postfix) with ESMTP id 4E3B724FEBAA for ; Fri, 25 Nov 2011 13:19:42 +0100 (CET) Received: from zmta01.irigo.dk ([127.0.0.1]) by localhost (zmta01.irigo.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 59kdEdlkr2sz for ; Fri, 25 Nov 2011 13:19:37 +0100 (CET) Received: from mail-iy0-f169.google.com (mail-iy0-f169.google.com [209.85.210.169]) by zmta01.irigo.dk (Postfix) with ESMTPSA id 1919A24FEBA6 for ; Fri, 25 Nov 2011 13:19:36 +0100 (CET) Received: by iaek3 with SMTP id k3so5973432iae.0 for ; Fri, 25 Nov 2011 04:19:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.43.50.197 with SMTP id vf5mr12087509icb.38.1322223574679; Fri, 25 Nov 2011 04:19:34 -0800 (PST) Received: by 10.231.66.13 with HTTP; Fri, 25 Nov 2011 04:19:34 -0800 (PST) In-Reply-To: <10f8a6c3847a22617bf3.1320190774@treguer.bzh.lan> References: <10f8a6c3847a22617bf3.1320190774@treguer.bzh.lan> Date: Fri, 25 Nov 2011 12:20:00 -0000 Message-ID: Subject: Re: [PATCH 1 of 4] scripts: introduce float type as a string From: Morten Thunberg Svendsen To: crossgcc@sourceware.org Cc: "Yann E. MORIN" , Michael Hope Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00174.txt.bz2 Hi On Wed, Nov 2, 2011 at 00:39, Yann E. MORIN wrote: > + > + =A0 =A0case "${CT_ARCH_FLOAT}" in > + =A0 =A0 =A0 =A0soft) > + =A0 =A0 =A0 =A0 =A0 =A0CT_ARCH_FLOAT_CFLAG=3D"-msoft-float" > + =A0 =A0 =A0 =A0 =A0 =A0CT_ARCH_WITH_FLOAT=3D"--with-float=3Dsoft" > + =A0 =A0 =A0 =A0 =A0 =A0;; > + =A0 =A0esac x86 do not support the --with-float option or the -msoft/har-float. This seems to fix it for x86 (only arm, mips, powerpc and sparc supports --with-float http://gcc.gnu.org/viewcvs/trunk/gcc/config.gcc?revision=3D181079&view=3Dma= rkup ) diff -r 258160822e35 scripts/build/arch/x86.sh --- a/scripts/build/arch/x86.sh Wed Nov 23 13:15:27 2011 +0800 +++ b/scripts/build/arch/x86.sh Fri Nov 25 13:07:05 2011 +0100 @@ -20,4 +20,16 @@ *) CT_TARGET_ARCH=3Di586;; esac fi + + # with-float is not possible for x86 + case "${CT_ARCH_FLOAT}" in + hard) + CT_ARCH_FLOAT_CFLAG=3D + CT_ARCH_WITH_FLOAT=3D + ;; + soft) + CT_ARCH_FLOAT_CFLAG=3D"-msoft-float" + CT_ARCH_WITH_FLOAT=3D + ;; + esac } -- For unsubscribe information see http://sourceware.org/lists.html#faq