aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@com.rmk.(none)>2004-08-12 19:09:50 +0100
committerRussell King <rmk@flint.arm.linux.org.uk>2004-08-12 19:09:50 +0100
commitf94f9db6ee061d1e1976ac009b3641c41f4814f6 (patch)
treec9286bb5394ac813e01f666d65b629ccb03337f0 /arch
parentda58de4bc4757780df70c71195ced7f4611102ca (diff)
downloadhistory-f94f9db6ee061d1e1976ac009b3641c41f4814f6.tar.gz
[ARM PATCH] 2012/1: Use -malignment-traps instead of -mshort-load-bytes if gcc supports it
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.
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 613bb1b0ac1f80..8b34b0d8aedde3 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -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