]> 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>
Thu, 18 Jan 2024 08:29:14 +0000 (09:29 +0100)
commit574332087a176419f4cfc97cce692199137622c8
tree891f9b4ccbea74232c3abcfb6c6168adc7a2609a
parentf99f803290a9472c1ba5387183ae4823c0590111
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