From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19364 invoked by alias); 23 Sep 2004 16:16:04 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 19354 invoked from network); 23 Sep 2004 16:16:02 -0000 Received: from unknown (HELO jupiter.oxsemi.com) (62.255.240.98) by sourceware.org with SMTP; 23 Sep 2004 16:16:02 -0000 Received: from mercury.oxsemi.com (mercury.oxsemi.com [62.255.240.97]) by jupiter.oxsemi.com (8.12.11/8.12.10) with ESMTP id i8NGG14Q013666 for ; Thu, 23 Sep 2004 17:16:01 +0100 Received: from mercury.oxsemi.com ([127.0.0.1]) by mercury.oxsemi.com (MailMonitor for SMTP v1.2.2 ) ; Thu, 23 Sep 2004 17:16:00 +0100 (BST) Received: from [172.16.10.80] (mccoy.oxsemi.com [172.16.10.80]) by mercury.oxsemi.com (8.12.11/8.12.11) with ESMTP id i8NGG0O1026199 for ; Thu, 23 Sep 2004 17:16:00 +0100 Message-ID: <4152F6C0.8010803@oxsemi.com> Date: Thu, 23 Sep 2004 16:16:00 -0000 From: Brian Clarke User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Floating point problems when building for ARM v5 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-09/txt/msg00261.txt.bz2 Hello all, I am attempting to use a GCC 3.4.2 based ARM toolchain (binutils-2.15, newlib-1.12.0) to build for both v4 and v5 instruction targets. When building for a v4 target all is well, the toolchain's libs (libc, libgcc) clain to be built for FPA floating point as do my object files and the code runs fine on the target. When I try to build for a v5 target (actually ARM926EJ-S, which has no hardware FP support) the linker complains about floating point conflicts. The toolchain libs are again FPA, but my object files are VFP format. I've tried convincing the toolchain to build my libraries for FPA, via experimenting with -msoft-float, -mhard-float and -fp=2/3 but each time I still get VFP libraries. I tried specifying the -mfpu=fpa switch, but this is rejected by the compiler. Can anyone suggest a way to get the toolchain to build FPA libraries? I've also tried to understand how to build the toolchain so it will build VFP libraries (i.e. for libc, libgcc). I have specified --with-arch=armv5te to the configure scripts of gcc (pt1 and pt2), newlib and binutils. This has resulted in libgcc being built for VFP, but libc is still built for FPA, suggesting I need to provide some other option while configuring newlib. The options I'm currently giving to newlib are: configure --target=arm-elf --with-arch=armv5te --enable-multilib --enable-interwork --prefix=$(PREFIX-PATH) --exec-prefix=$(EXEC-PATH) I expected to see multiple versions of libc etc. built due to the --enable-multilib option, but only one appears, with FPA as the floating point type. Can anyone suggest an option to specify to the newlib configure to produce VFP libraries? The newlib config-ml.in file doesn't seem to allow for selecting VFP. Thanks, Brian.