]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgomp/test: Add flags to find libatomic in build-tree testing
authorMaciej W. Rozycki <macro@wdc.com>
Wed, 20 Nov 2019 15:49:23 +0000 (15:49 +0000)
committerMaciej W. Rozycki <macro@gcc.gnu.org>
Wed, 20 Nov 2019 15:49:23 +0000 (15:49 +0000)
commit83115e9eb8a54893088eb556fb4cc9194c0c5926
tree1b5fc4ab18a4f28911a8594e974209c6ff0a2b22
parent8e361de1b08a579fe5d771be5ba47cf31533380c
libgomp/test: Add flags to find libatomic in build-tree testing

Add flags to find libatomic in build-tree testing, fixing a catastrophic
libgomp testsuite failure with `riscv*-*-linux*' targets, which imply
`-latomic' with the `-pthread' GCC option, implied in turn by the
`-fopenacc' and `-fopenmp' options, removing failures like:

.../bin/riscv64-linux-gnu-ld: cannot find -latomic
collect2: error: ld returned 1 exit status
compiler exited with status 1
FAIL: libgomp.c/../libgomp.c-c++-common/atomic-18.c (test for excess errors)
Excess errors:
.../bin/riscv64-linux-gnu-ld: cannot find -latomic

UNRESOLVED: libgomp.c/../libgomp.c-c++-common/atomic-18.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:

=== libgomp Summary ===

# of expected passes 90
# of unexpected failures 3267
# of expected failures 2
# of unresolved testcases 3247
# of unsupported tests 548

to:

=== libgomp Summary ===

# of expected passes 6834
# of unexpected failures 4
# of expected failures 4
# of unsupported tests 518

libgomp/
* testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
libatomic in build-tree testing.

From-SVN: r278505
libgomp/ChangeLog
libgomp/testsuite/lib/libgomp.exp