aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/Makefile
diff options
context:
space:
mode:
authorLinus Torvalds2016-03-01 08:57:34 -0800
committerLinus Torvalds2016-03-01 08:57:34 -0800
commit7d46af2084eabe73ce4dbf06072fded34b58b0c7 (patch)
tree3b7be860d274f98257648c202f81016bc841148c /arch/sparc/Makefile
parentfc77dbd34c5c99bce46d40a2491937c3bcbd10af (diff)
parent397d1533b6cce0ccb5379542e2e6d079f6936c46 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
Pull sparc fixes from David Miller: 1) System call tracing doesn't handle register contents properly across the trace. From Mike Frysinger. 2) Hook up copy_file_range 3) Build fix for 32-bit with newer tools. 4) New sun4v watchdog driver, from Wim Coekaerts. 5) Set context system call has to allow for servicable faults when we flush the register windows to memory * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc: sparc64: Fix sparc64_set_context stack handling. sparc32: Add -Wa,-Av8 to KBUILD_CFLAGS. Add sun4v_wdt watchdog driver sparc: Fix system call tracing register handling. sparc: Hook up copy_file_range syscall.
Diffstat (limited to 'arch/sparc/Makefile')
-rw-r--r--arch/sparc/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sparc/Makefile b/arch/sparc/Makefile
index eaee14637d93..8496a074bd0e 100644
--- a/arch/sparc/Makefile
+++ b/arch/sparc/Makefile
@@ -24,7 +24,13 @@ LDFLAGS := -m elf32_sparc
export BITS := 32
UTS_MACHINE := sparc
+# We are adding -Wa,-Av8 to KBUILD_CFLAGS to deal with a specs bug in some
+# versions of gcc. Some gcc versions won't pass -Av8 to binutils when you
+# give -mcpu=v8. This silently worked with older bintutils versions but
+# does not any more.
KBUILD_CFLAGS += -m32 -mcpu=v8 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7
+KBUILD_CFLAGS += -Wa,-Av8
+
KBUILD_AFLAGS += -m32 -Wa,-Av8
else