From f94f9db6ee061d1e1976ac009b3641c41f4814f6 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Thu, 12 Aug 2004 19:09:50 +0100 Subject: [PATCH] [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. --- arch/arm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 613bb1b0ac1f8..8b34b0d8aedde 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 -- 2.53.0