]> 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>
Thu, 18 Jan 2024 08:29:34 +0000 (09:29 +0100)
* tests/jit/test-cache.c: Treat Linux/powerpc64le *not* like AIX.

ChangeLog
tests/jit/test-cache.c

index 4c7b66520c40eccef5811ddbfb0b8a8f9d3e3572..7b8e2c688bfc243c470bae72c6f8d6c50130d20c 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;