]> Savannah Git Hosting - gnulib.git/commit
jit/cache tests: Avoid test failure on hppa CPUs.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Jan 2024 15:56:08 +0000 (16:56 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Jan 2024 15:56:08 +0000 (16:56 +0100)
commitf8504293dc1135c1a6d3badf48641075b3d0b75b
treeb296f909557c4ea11c65d25453047d800d931ba6
parent0c3e4af8f059eac391d8f712ac2017b628982fea
jit/cache tests: Avoid test failure on hppa CPUs.

* tests/jit/test-cache.c (FUNCPTR_BIAS): New macro.
(structptr_to_funcptr, funcptr_to_structptr): New functions/macros.
(xcopy_structptr): Renamed from xcopy_funcptr. Mark as inline.
(COPY_FUNCPTR, CODE): Use structptr_to_funcptr, funcptr_to_structptr.
* modules/jit/cache-tests (configure.ac): Require AC_C_INLINE.
ChangeLog
modules/jit/cache-tests
tests/jit/test-cache.c