diff mbox series

rs6000: Fix sanitizer build (PR90639)

Message ID 93c2364b80ebbc02029a91456e9e68f9e952e080.1558981654.git.segher@kernel.crashing.org
State New
Headers show
Series rs6000: Fix sanitizer build (PR90639) | expand

Commit Message

Segher Boessenkool May 27, 2019, 6:36 p.m. UTC
The assembler code needs to say it uses AltiVec instructions.

Tested on powerpc64-linux {-m32,-m64} and on powerpc64le-linux.
Committing to trunk.


2019-05-27  Segher Boessenkool  <segher@kernel.crashing.org>

libsanitizer/
	PR target/90639
	* tsan/tsan_rtl_ppc64.S: Add ".machine altivec".

---
 libsanitizer/tsan/tsan_rtl_ppc64.S | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libsanitizer/tsan/tsan_rtl_ppc64.S b/libsanitizer/tsan/tsan_rtl_ppc64.S
index 8285e21..9e533a7 100644
--- a/libsanitizer/tsan/tsan_rtl_ppc64.S
+++ b/libsanitizer/tsan/tsan_rtl_ppc64.S
@@ -1,5 +1,6 @@ 
 #include "tsan_ppc_regs.h"
 
+        .machine altivec
         .section .text
         .hidden __tsan_setjmp
         .globl _setjmp