]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: Fix bootstrap (libffi)
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 25 Oct 2021 23:29:26 +0000 (23:29 +0000)
committerSegher Boessenkool <segher@kernel.crashing.org>
Mon, 25 Oct 2021 23:37:35 +0000 (23:37 +0000)
This fixes bootstrap for the current problems building libffi.

2021-10-25  Segher Boessenkool  <segher@kernel.crashing.org>

libffi/
* src/powerpc/linux64.S: Enable AltiVec insns.
* src/powerpc/linux64_closure.S: Ditto.

libffi/src/powerpc/linux64.S
libffi/src/powerpc/linux64_closure.S

index e92d64af34fdd15a1c9b0bbd4de2c24bf52b0a48..1f876ea39eddc2caf732f662458d58f41c8fb68b 100644 (file)
@@ -29,6 +29,8 @@
 #include <fficonfig.h>
 #include <ffi.h>
 
+       .machine altivec
+
 #ifdef POWERPC64
        .hidden ffi_call_LINUX64
        .globl  ffi_call_LINUX64
index 3469a2cbb01ee38188a348992517ae4fa19bcaa2..199981db3307c23fc1a57d37e4e5fa01a78351d7 100644 (file)
@@ -30,6 +30,8 @@
 
        .file   "linux64_closure.S"
 
+       .machine altivec
+
 #ifdef POWERPC64
        FFI_HIDDEN (ffi_closure_LINUX64)
        .globl  ffi_closure_LINUX64