1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00

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.
This commit is contained in:
Bruno Haible
2024-01-08 22:48:46 +01:00
parent 9f576fdf74
commit c355f9ba78
3 changed files with 31 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ clean-temp-simple
getpagesize
host-cpu-c-abi
stdint
xalloc
configure.ac:
AC_CHECK_HEADERS_ONCE([sys/mman.h])