From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4257 invoked by alias); 25 Nov 2011 23:23:17 -0000 Received: (qmail 4247 invoked by uid 22791); 25 Nov 2011 23:23:16 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtp07.smtpout.orange.fr (HELO smtp.smtpout.orange.fr) (80.12.242.129) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Nov 2011 23:23:02 +0000 Received: from treguer.bzh.lan ([90.32.37.166]) by mwinf5d13 with ME id 1bNz1i0063b4rwA03bNzud; Sat, 26 Nov 2011 00:23:00 +0100 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [PATCH 0 of 6] Fix --with-float= for architectures that do not support it Message-Id: In-Reply-To: <201111251813.01129.yann.morin.1998@anciens.enib.fr> References: <201111251813.01129.yann.morin.1998@anciens.enib.fr> User-Agent: Mercurial-patchbomb/2.0 Date: Fri, 25 Nov 2011 23:23:00 -0000 From: "Yann E. MORIN" To: crossgcc@sourceware.org Cc: Morten Thunberg Svendsen , Michael Hope 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/msg00178.txt.bz2 Hello All, This patchset fixes (tries to fix) the floating point settings for architectures that do not support it. Previously, when hard-float was selected, no option was passed to ./configure, and no CFLAGS was set. Since changeset #149c33923f47, hard-float sets --with-float=hard as a configure option, and -mhard-float as a CFLAGS. This breaks architectures for which these are not valid, which are all except ARM, MIPS, PPC and SPARC; see: http://gcc.gnu.org/viewcvs/trunk/gcc/config.gcc?revision=181079&view=markup (via Morten Thunberg Svendsen ) What this patchset does, is simply hide the floating point mode selection when the architecture does not support it. There is a drawback, though: it is no longer possible to select soft-float for the x86 architecture. On one hand, I think this is not too bad, because x86 nowadays do have an FPU; OTOH, i386 and i486 may lack an FPU, and they most likely are the kind of CPU one would find in an x86-embedded product. [PATCH 1/6] config/target: add float support selection [PATCH 2/6] arch/arm: ARM supports setting the floating point type [PATCH 3/6] arch/mips: MIPS supports setting the floating point type [PATCH 4/6] arch/powerpc: PowerPC supports setting the floating point type [PATCH 5/6] arch/sparc: Sparc supports setting the floating point type [PATCH 6/6] config/target: enforce floating point support As usual, comments welcome! :-) Regards, Yann E. MORIN. PS. I'll be without internet access until Monday evening... -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq