tcl global directive outside proc body does nothing (ld)
[deliverable/binutils-gdb.git] / ld / testsuite / ld-x86-64 / mpx.exp
index 7822221d23794413e359a8e05d32b36f26c30ff5..3a0f4b1469578657a53e6a5e12cd9321fb4aeca9 100644 (file)
@@ -1,5 +1,5 @@
 # Expect script for ELF MPX tests.
-#   Copyright (C) 2013-2018 Free Software Foundation, Inc.
+#   Copyright (C) 2013-2020 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
@@ -32,13 +32,10 @@ if ![istarget "x86_64-*-linux*"] {
 }
 
 # Check to see if the C compiler works
-if { [which $CC] == 0 } {
+if { ![check_compiler_available] } {
     return
 }
 
-# Add $PLT_CFLAGS if PLT is expected.
-global PLT_CFLAGS
-
 run_cc_link_tests [list \
     [list \
        "Build libmpx1a.a" \
This page took 0.028118 seconds and 4 git commands to generate.