mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-10 04:43:00 +03:00
* 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.
31 lines
633 B
Plaintext
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)
|