]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sparc: build with -mvis on sparc32/sparcv9 and sparc64
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 5 Aug 2016 20:35:01 +0000 (22:35 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 5 Aug 2016 20:35:01 +0000 (22:35 +0200)
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.

ChangeLog
sysdeps/sparc/sparc32/sparcv9/Makefile
sysdeps/sparc/sparc64/Makefile

index 514426302b77289b30d85a560172908c4a4782f0..e49167c95659f3164d3f7f37c57a5dd1be0e3634 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
+
+       * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
+       * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
+       -Wa,-Av9a -mvis.
+
 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
 
        * math/gen-libm-test.pl (apply_lit): Rewrite to apply
index fefc742478b2b30b7d0a9b692b6d95e609f66ded..08c5a96c95db9b598a3d52500455485c8ed7f75e 100644 (file)
@@ -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
index 3a12510307139e2a70cb45f3c1d31e6b1b4da2ad..fbabf692633923211827e43eddca9b9aad82f58b 100644 (file)
@@ -1,3 +1,5 @@
+sysdep-CFLAGS += -Wa,-Av9a -mvis
+
 ifeq ($(subdir),string)
 sysdep_routines += align-cpy
 endif