From: Bruno Haible Date: Wed, 10 Jan 2024 16:26:57 +0000 (+0100) Subject: jit/cache tests: Fix for powerpc64le CPUs. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=8cb8ba86f38b37e6b3d5f6212bd69ff1557ff77e;p=gnulib.git jit/cache tests: Fix for powerpc64le CPUs. * tests/jit/test-cache.c: Treat Linux/powerpc64le *not* like AIX. --- diff --git a/ChangeLog b/ChangeLog index 4c7b66520c..7b8e2c688b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-01-10 Bruno Haible + + jit/cache tests: Fix for powerpc64le CPUs. + * tests/jit/test-cache.c: Treat Linux/powerpc64le *not* like AIX. + 2024-01-10 Bruno Haible jit/cache tests: Avoid gcc -Wstrict-aliasing warning on Linux/powerpc64. diff --git a/tests/jit/test-cache.c b/tests/jit/test-cache.c index 18416f8f51..d19c720eb9 100644 --- a/tests/jit/test-cache.c +++ b/tests/jit/test-cache.c @@ -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;