bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* jit/cache tests: Fix for powerpc64le CPUs
@ 2024-01-10 16:33 Bruno Haible
  0 siblings, 0 replies; only message in thread
From: Bruno Haible @ 2024-01-10 16:33 UTC (permalink / raw)
  To: bug-gnulib

This patch fixes a test failure on Linux/powerpc64le.


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.

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;





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-10 16:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-10 16:33 jit/cache tests: Fix for powerpc64le CPUs Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).