]> Savannah Git Hosting - gnulib.git/commit
jit/cache tests: Fix for powerpc*, ia64, hppa* CPUs.
authorBruno Haible <bruno@clisp.org>
Mon, 8 Jan 2024 21:48:46 +0000 (22:48 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 8 Jan 2024 21:48:46 +0000 (22:48 +0100)
commitc355f9ba78d2553c396f9f2c5e59da4cfeaddfa3
treea6582627ccf00bce52a55d87b0b30141313146f6
parent9f576fdf7426221ca4b52010ab2c1883479e808b
jit/cache tests: Fix for powerpc*, ia64, hppa* CPUs.

* modules/jit/cache-tests (Depends-on): Add xalloc.
* tests/jit/test-cache.c: Include xalloc.h.
(FUNCPTR_POINTS_TO_CODE, COPY_FUNCPTR): New macros.
(xcopy_funcptr): New function.
(main): Create a copy of the function pointer return1, so as not to
destructively modify return1. Fix memcpy argument.
ChangeLog
modules/jit/cache-tests
tests/jit/test-cache.c