gcc/libatomic
Maciej W. Rozycki 5ff06d762a libatomic/test: Fix compilation for build sysroot
Fix a problem with the libatomic testsuite using a method to determine
the compiler to use resulting in the tool being different from one the
library has been built with, and causing a catastrophic failure from the
lack of a suitable `--sysroot=' option where the `--with-build-sysroot='
configuration option has been used to build the compiler resulting in
the inability to link executables.

Address this problem by providing a DejaGNU configuration file defining
the compiler to use, via the GCC_UNDER_TEST TCL variable, set from $CC
by autoconf, which will have all the required options set for the target
compiler to build executables in the environment configured, removing
failures like:

.../bin/riscv64-linux-gnu-ld: cannot find crt1.o: No such file or directory
.../bin/riscv64-linux-gnu-ld: cannot find -lm
collect2: error: ld returned 1 exit status
compiler exited with status 1
FAIL: libatomic.c/atomic-compare-exchange-1.c (test for excess errors)
Excess errors:
.../bin/riscv64-linux-gnu-ld: cannot find crt1.o: No such file or directory
.../bin/riscv64-linux-gnu-ld: cannot find -lm

UNRESOLVED: libatomic.c/atomic-compare-exchange-1.c compilation failed to produce executable

and bringing overall test results for the `riscv64-linux-gnu' target
(here with the `x86_64-linux-gnu' host and RISC-V QEMU in the Linux user
emulation mode as the target board) from:

		=== libatomic Summary ===

# of unexpected failures	27
# of unresolved testcases	27

to:

		=== libatomic Summary ===

# of expected passes		54

	libatomic/
	* configure.ac: Add testsuite/libatomic-site-extra.exp to output
	files.
	* configure: Regenerate.
	* libatomic/testsuite/libatomic-site-extra.exp.in: New file.
	* testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
	variable.
	* testsuite/Makefile.in: Regenerate.
2020-04-06 23:32:44 +01:00
..
config Update copyright years. 2020-01-01 12:51:42 +01:00
testsuite libatomic/test: Fix compilation for build sysroot 2020-04-06 23:32:44 +01:00
.gitignore
acinclude.m4 re PR other/79543 (Inappropriate "ld --version" checking) 2019-09-03 14:10:26 +00:00
aclocal.m4 Add `--with-toolexeclibdir=' configuration option 2020-01-24 11:24:25 +00:00
auto-config.h.in Makefile.am (ARCH_AARCH64_LINUX): Add IFUNC_OPTIONS and libatomic_la_LIBADD. 2017-12-05 00:49:09 +00:00
cas_n.c Update copyright years. 2020-01-01 12:51:42 +01:00
ChangeLog libatomic/test: Fix compilation for build sysroot 2020-04-06 23:32:44 +01:00
configure libatomic/test: Fix compilation for build sysroot 2020-04-06 23:32:44 +01:00
configure.ac libatomic/test: Fix compilation for build sysroot 2020-04-06 23:32:44 +01:00
configure.tgt Update copyright years. 2020-01-01 12:51:42 +01:00
exch_n.c Update copyright years. 2020-01-01 12:51:42 +01:00
fadd_n.c Update copyright years. 2020-01-01 12:51:42 +01:00
fand_n.c
fence.c Update copyright years. 2020-01-01 12:51:42 +01:00
fenv.c Update copyright years. 2020-01-01 12:51:42 +01:00
fior_n.c
flag.c Update copyright years. 2020-01-01 12:51:42 +01:00
fnand_n.c
fop_n.c Update copyright years. 2020-01-01 12:51:42 +01:00
fsub_n.c
fxor_n.c
gcas.c Update copyright years. 2020-01-01 12:51:42 +01:00
gexch.c Update copyright years. 2020-01-01 12:51:42 +01:00
glfree.c Update copyright years. 2020-01-01 12:51:42 +01:00
gload.c Update copyright years. 2020-01-01 12:51:42 +01:00
gstore.c Update copyright years. 2020-01-01 12:51:42 +01:00
host-config.h Update copyright years. 2020-01-01 12:51:42 +01:00
init.c
libatomic_i.h Update copyright years. 2020-01-01 12:51:42 +01:00
libatomic.map Add out-of-line versions of some <stdatomic.h> functions (PR c/65083). 2015-11-18 22:13:44 +00:00
load_n.c Update copyright years. 2020-01-01 12:51:42 +01:00
Makefile.am libatomic: Fix last change [PR55930] 2020-02-22 19:55:09 +01:00
Makefile.in libatomic: Fix last change [PR55930] 2020-02-22 19:55:09 +01:00
store_n.c Update copyright years. 2020-01-01 12:51:42 +01:00
tas_n.c Update copyright years. 2020-01-01 12:51:42 +01:00