lkml.org 
[lkml]   [2004]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2.6.9-rc1] Fix ARM compilation with GCC 3.4


gcc 3.4 passes -mfpu=softfpa to the assembler if -msoft-float is
specified.

This conflicts with -mno-fpu which the Makefile passes exlicitly.

I fixed by not appending -Wa,-mno-fpu to the command line, but of
course you probably only want to do this for sufficiently recent GCC
and binutils. $(call cc-option) doesn't work in this case (or doesn't
appear to, anyway).

--- /tmp/geta18380 2004-09-01 20:46:26.000000000 +1000
+++ Linux-2.6/arch/arm/Makefile 2004-09-01 20:36:44.000000000 +1000
@@ -55,8 +55,8 @@
tune-$(CONFIG_CPU_V6) :=-mtune=strongarm

# Need -Uarm for gcc < 3.x
-CFLAGS +=-mapcs-32 $(arch-y) $(tune-y) $(call cc-option,-malignment-traps,-mshort-load-bytes) -msoft-float -Wa,-mno-fpu -Uarm
-AFLAGS +=-mapcs-32 $(arch-y) $(tune-y) -msoft-float -Wa,-mno-fpu
+CFLAGS +=-mapcs-32 $(arch-y) $(tune-y) $(call cc-option,-malignment-traps,-mshort-load-bytes) -msoft-float -Uarm
+AFLAGS +=-mapcs-32 $(arch-y) $(tune-y) -msoft-float

CHECKFLAGS += -D__arm__=1

--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
The technical we do immediately, the political takes *forever*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.376 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site