This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/3] sparc: build with -mvis on sparc32/sparcv9 and sparc64
- From: David Miller <davem at davemloft dot net>
- To: aurelien at aurel32 dot net
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 03 Aug 2016 22:19:34 -0700 (PDT)
- Subject: Re: [PATCH 1/3] sparc: build with -mvis on sparc32/sparcv9 and sparc64
- Authentication-results: sourceware.org; auth=none
- References: <1470272940-22128-1-git-send-email-aurelien@aurel32.net>
From: Aurelien Jarno <aurelien@aurel32.net>
Date: Thu, 4 Aug 2016 03:08:58 +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.
All three patches look great, please commit them and thanks for doing
this work.