glibc/sysdeps
H.J. Lu b79f257533 Add TEST_CC and TEST_CXX support
Support testing glibc build with a different C compiler or a different
C++ compiler with

$ ../glibc-VERSION/configure TEST_CC="gcc-6.4.1" TEST_CXX="g++-6.4.1"

1. Add LIBC_TRY_CC_AND_TEST_CC_OPTION, LIBC_TRY_CC_AND_TEST_CC_COMMAND
and LIBC_TRY_CC_AND_TEST_LINK to test both CC and TEST_CC.
2. Add check and xcheck targets to Makefile.in and override build compiler
options with ones from TEST_CC and TEST_CXX.

Tested on Fedora 41/x86-64:

1. Building with GCC 14.2.1 and testing with GCC 6.4.1 and GCC 11.2.1.
2. Building with GCC 15 and testing with GCC 6.4.1.

Support for GCC versions older than GCC 6.2 may need to change the test
sources.  Other targets may need to update configure.ac under sysdeps and
modify Makefile.in to override target build compiler options.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
2024-12-11 18:31:00 +08:00
..
aarch64 AArch64: Improve codegen in users of ADVSIMD expm1 helper 2024-12-09 16:20:34 +00:00
alpha math: Use tanf from CORE-MATH 2024-11-22 10:52:27 -03:00
arc elf: Consolidate stackinfo.h 2024-12-02 17:14:58 +00:00
arm math: Use tanf from CORE-MATH 2024-11-22 10:52:27 -03:00
csky elf: Consolidate stackinfo.h 2024-12-02 17:14:58 +00:00
generic malloc: Optimize small memory clearing for calloc 2024-12-04 04:28:15 +08:00
gnu sysdeps: Re-flow and sort multiline gnu/Makefile definitions 2024-08-07 11:02:03 -03:00
hppa math: Use tanf from CORE-MATH 2024-11-22 10:52:27 -03:00
htl htl: move pthread_condattr_setpshared into libc. 2024-12-09 02:03:18 +01:00
hurd hurd: Move internal functions to internal header 2024-03-23 22:43:07 +01:00
i386 Implement C23 asinpi 2024-12-10 20:42:20 +00:00
ieee754 Implement C23 asinpi 2024-12-10 20:42:20 +00:00
loongarch elf: Consolidate stackinfo.h 2024-12-02 17:14:58 +00:00
m68k nptl: Add <thread_pointer.h> for m68k 2024-12-09 20:24:26 +00:00
mach Implement C23 asinpi 2024-12-10 20:42:20 +00:00
microblaze Remove nios2-linux-gnu 2024-11-28 14:03:25 -03:00
mips math: Use tanf from CORE-MATH 2024-11-22 10:52:27 -03:00
nptl linux: Add support for getrandom vDSO 2024-11-12 14:42:12 -03:00
or1k math: Use tanf from CORE-MATH 2024-11-22 10:52:27 -03:00
posix Silence most -Wzero-as-null-pointer-constant diagnostics 2024-11-25 16:45:59 -03:00
powerpc powerpc64le: ROP changes for the dl-trampoline functions 2024-12-10 23:25:56 -05:00
pthread Add threaded test of sem_trywait 2024-11-29 20:25:04 +00:00
riscv nptl: Add <thread_pointer.h> for RISC-V 2024-12-09 13:26:55 -05:00
s390 s390x: Regenerated ULPs. 2024-12-09 10:25:24 +01:00
sh math: Use tanf from CORE-MATH 2024-11-22 10:52:27 -03:00
sparc math: Add sinpi,cospi,tanpi sparc64 ulps 2024-12-08 22:01:51 +01:00
unix Implement C23 asinpi 2024-12-10 20:42:20 +00:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
x86 Silence most -Wzero-as-null-pointer-constant diagnostics 2024-11-25 16:45:59 -03:00
x86_64 Add TEST_CC and TEST_CXX support 2024-12-11 18:31:00 +08:00