summaryrefslogtreecommitdiffstats
path: root/arch/arc/Makefile
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2016-11-08 08:47:14 -0800
committerVineet Gupta <vgupta@synopsys.com>2016-11-08 09:23:52 -0800
commit76a08404742e6da79f1e5002ac39033dc79d94da (patch)
treec8bb56cf8b2a2953482b2263124551d7e6c9d147 /arch/arc/Makefile
parent922cc171998ac3dbe74d57011ef7ed57e9b0d7df (diff)
downloadop-kernel-dev-76a08404742e6da79f1e5002ac39033dc79d94da.zip
op-kernel-dev-76a08404742e6da79f1e5002ac39033dc79d94da.tar.gz
Revert "ARC: build: retire old toggles"
This has caused a bunch of build failures at a few sites, with GNU 2015.12 and older as the assembler seems to need -mlock to be able to grok llock/scond instructions for ARC700 builds. different places since the older tools still seem to release of tools which most people are using seem to trip with the -mlock flag not being passed. This reverts commit c3005475889c7c730638f95d13be3360f0b33e98.
Diffstat (limited to 'arch/arc/Makefile')
-rw-r--r--arch/arc/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arc/Makefile b/arch/arc/Makefile
index 864adad..aa82d13 100644
--- a/arch/arc/Makefile
+++ b/arch/arc/Makefile
@@ -50,6 +50,9 @@ atleast_gcc44 := $(call cc-ifversion, -ge, 0404, y)
cflags-$(atleast_gcc44) += -fsection-anchors
+cflags-$(CONFIG_ARC_HAS_LLSC) += -mlock
+cflags-$(CONFIG_ARC_HAS_SWAPE) += -mswape
+
ifdef CONFIG_ISA_ARCV2
ifndef CONFIG_ARC_HAS_LL64
OpenPOWER on IntegriCloud