aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2020-12-31 21:37:42 -0300
committerAlexandre Oliva <oliva@gnu.org>2021-01-01 01:46:34 -0300
commit0292de4582121f986da092ed0515e980054afb1f (patch)
treeb55f31a7fdf8369c7e11d42df9cbea5631afb0ea
parent8afe0911e0e43740f64c78b4a6e336480358d01f (diff)
downloadgcc-0292de4582121f986da092ed0515e980054afb1f.zip
gcc-0292de4582121f986da092ed0515e980054afb1f.tar.gz
gcc-0292de4582121f986da092ed0515e980054afb1f.tar.bz2
Add missing vxworks filters to lib/target-supports.exp functions
Explicitly disable some vxworks-missing features in the testsuite, that the current feature tests detect as present. for gcc/testsuite/ChangeLog * lib/target-supports.exp (check_weak_available, check_fork_available, check_effective_target_lto, check_effective_target_mempcpy): Add vxworks filters.
-rw-r--r--gcc/testsuite/lib/target-supports.exp21
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 11343d0..7cad035 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -326,6 +326,12 @@ proc check_weak_available { } {
return 0
}
+ # VxWorks hardly supports it (vx7 RTPs only)
+
+ if { [istarget *-*-vxworks*] } {
+ return 0
+ }
+
# ELF and ECOFF support it. a.out does with gas/gld but may also with
# other linkers, so we should try it
@@ -2606,6 +2612,11 @@ proc check_function_available { function } {
# Returns true iff "fork" is available on the target system.
proc check_fork_available {} {
+ if { [istarget *-*-vxworks*] } {
+ # VxWorks doesn't have fork but our way to test can't
+ # tell as we're doing partial links for kernel modules.
+ return 0
+ }
return [check_function_available "fork"]
}
@@ -9295,6 +9306,11 @@ proc check_effective_target_gld { } {
# (LTO) support.
proc check_effective_target_lto { } {
+ if { [istarget *-*-vxworks*] } {
+ # No LTO on VxWorks, with kernel modules
+ # built with partial links
+ return 0
+ }
if { [istarget nvptx-*-*]
|| [istarget amdgcn-*-*] } {
return 0;
@@ -9514,6 +9530,11 @@ proc check_effective_target_run_expensive_tests { } {
# Returns 1 if "mempcpy" is available on the target system.
proc check_effective_target_mempcpy {} {
+ if { [istarget *-*-vxworks*] } {
+ # VxWorks doesn't have mempcpy but our way to test fails
+ # to detect as we're doing partial links for kernel modules.
+ return 0
+ }
return [check_function_available "mempcpy"]
}