1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-10 04:43:00 +03:00
Files
gnulib/modules/jit/cache-tests
Bruno Haible c355f9ba78 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.
2024-01-08 22:48:46 +01:00

31 lines
633 B
Plaintext

Files:
tests/jit/test-cache.c
tests/macros.h
m4/mmap-anon.m4
m4/warnings.m4
Status:
unportable-test
Depends-on:
clean-temp-simple
getpagesize
host-cpu-c-abi
stdint
xalloc
configure.ac:
AC_CHECK_HEADERS_ONCE([sys/mman.h])
gl_FUNC_MMAP_ANON
dnl Disable the OpenBSD "retguard" stack protector for this test.
gl_COMPILER_OPTION_IF([-fno-ret-protector],
[DISABLE_OPENBSD_RETGUARD='-fno-ret-protector'],
[DISABLE_OPENBSD_RETGUARD=])
AC_SUBST([DISABLE_OPENBSD_RETGUARD])
Makefile.am:
TESTS += test-cache
check_PROGRAMS += test-cache
test_cache_SOURCES = jit/test-cache.c
test_cache_CFLAGS = $(AM_CFLAGS) $(DISABLE_OPENBSD_RETGUARD)