]> git.neil.brown.name Git - history.git/commitdiff
[ARM PATCH] 2012/1: Use -malignment-traps instead of -mshort-load-bytes if gcc suppor...
authorCatalin Marinas <catalin.marinas@com.rmk.(none)>
Thu, 12 Aug 2004 18:09:50 +0000 (19:09 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Thu, 12 Aug 2004 18:09:50 +0000 (19:09 +0100)
Patch from Catalin Marinas

This patch replaces the -mshort-load-bytes option with $(call
check_gcc,-malignment-traps,-mshort-load-bytes) in the CFLAGS
setting in arch/arm/Makefile.

arch/arm/Makefile

index 613bb1b0ac1f808ad29d2f6797f4fb7480ff9395..8b34b0d8aedde389c987dafec1673fdc44038571 100644 (file)
@@ -55,7 +55,7 @@ tune-$(CONFIG_CPU_XSCALE)     :=$(call check_gcc,-mtune=xscale,-mtune=strongarm110)
 tune-$(CONFIG_CPU_V6)          :=-mtune=strongarm
 
 # Need -Uarm for gcc < 3.x
-CFLAGS         +=-mapcs-32 $(arch-y) $(tune-y) -mshort-load-bytes -msoft-float -Wa,-mno-fpu -Uarm
+CFLAGS         +=-mapcs-32 $(arch-y) $(tune-y) $(call check_gcc,-malignment-traps,-mshort-load-bytes) -msoft-float -Wa,-mno-fpu -Uarm
 AFLAGS         +=-mapcs-32 $(arch-y) $(tune-y) -msoft-float -Wa,-mno-fpu
 
 CHECK          := $(CHECK) -D__arm__=1