* tests/jit/test-cache.c (funcptr_to_structptr): Turn into an inline
function.
+2024-01-10 Bruno Haible <bruno@clisp.org>
+
+ jit/cache tests: Avoid gcc -Wstrict-aliasing warning on Linux/powerpc64.
+ * tests/jit/test-cache.c (funcptr_to_structptr): Turn into an inline
+ function.
+
2024-01-10 Bruno Haible <bruno@clisp.org>
jit/cache tests: Fix for arm CPUs with GCC target arm-linux-gnueabihf.
}
# else
# define structptr_to_funcptr(p) ((void *) (p))
-# define funcptr_to_structptr(funcptr) ((struct func *) (funcptr))
+static inline struct func *
+funcptr_to_structptr (void * volatile funcptr)
+{
+ return (struct func *) funcptr;
+}
# endif
static inline struct func *
xcopy_structptr (struct func *structptr)