]> Savannah Git Hosting - gnulib.git/commitdiff
jit/cache tests: Fix for powerpc64le CPUs.
authorBruno Haible <bruno@clisp.org>
Wed, 10 Jan 2024 16:26:57 +0000 (17:26 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 10 Jan 2024 16:26:57 +0000 (17:26 +0100)
* tests/jit/test-cache.c: Treat Linux/powerpc64le *not* like AIX.

ChangeLog
tests/jit/test-cache.c

index 9a585178f9026bdf04eb1458d69031ee2bb71a84..b032b5e088ef6a6da3e79752c044f48d7d9111cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-01-10  Bruno Haible  <bruno@clisp.org>
+
+       jit/cache tests: Fix for powerpc64le CPUs.
+       * tests/jit/test-cache.c: Treat Linux/powerpc64le *not* like AIX.
+
 2024-01-10  Bruno Haible  <bruno@clisp.org>
 
        jit/cache tests: Avoid gcc -Wstrict-aliasing warning on Linux/powerpc64.
index 18416f8f51ed08cd9ce31b3136f79f26f74a6f6b..d19c720eb93c993d80aec8edf2a0858e412324d8 100644 (file)
@@ -44,7 +44,7 @@
     however, is not universally true, see:
     https://git.savannah.gnu.org/gitweb/?p=libffcall.git;a=blob;f=porting-tools/abis/function-pointer.txt.  */
 
-#if ((defined __powerpc__ || defined __powerpc64__) && defined _AIX) || (defined __powerpc64__ && defined __linux__)
+#if ((defined __powerpc__ || defined __powerpc64__) && defined _AIX) || (defined __powerpc64__ && !defined __powerpc64_elfv2__ && defined __linux__)
 struct func
 {
   void *code_address;