From 9c8addbc1cd414711310c5a47693f5b0f0b9be3a Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Fri, 5 Aug 2016 22:35:01 +0200 Subject: sparc: build with -mvis on sparc32/sparcv9 and sparc64 When building for sparc32/sparcv9 or sparc64, we assume that VIS instructions are available and use them in the sparc specific assembly code. However we do not tell GCC to use such instructions, resulting in slightly suboptimal code. Fix that by passing -Wa,-Av9a -mvis to GCC. Changelog: * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis. * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to -Wa,-Av9a -mvis. --- sysdeps/sparc/sparc32/sparcv9/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/sparc/sparc32/sparcv9') diff --git a/sysdeps/sparc/sparc32/sparcv9/Makefile b/sysdeps/sparc/sparc32/sparcv9/Makefile index fefc742478..08c5a96c95 100644 --- a/sysdeps/sparc/sparc32/sparcv9/Makefile +++ b/sysdeps/sparc/sparc32/sparcv9/Makefile @@ -1,4 +1,4 @@ -sysdep-CFLAGS += -mcpu=ultrasparc -Wa,-Av9a +sysdep-CFLAGS += -mcpu=ultrasparc -Wa,-Av9a -mvis ifeq ($(have-as-vis3),yes) ASFLAGS-.o += -Wa,-Av9d -- cgit 1.4.1