Remove a stray debugging puts and an unused global declaration from
check_profiling_available. Neither affects the AutoFDO availability
check, as the wrapper path is already computed by profopt-perf-wrapper.

gcc/testsuite/ChangeLog:

    * lib/target-supports.exp (check_profiling_available): Remove
    unused global declaration and debugging output.

Tested on x86_64-pc-linux-gnu.

Pushed as obvious.

Uros.
diff --git a/gcc/testsuite/lib/target-supports.exp 
b/gcc/testsuite/lib/target-supports.exp
index 01582621f84..d1fcf943b21 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -794,8 +794,6 @@ proc check_profiling_available { test_what } {
            verbose "autofdo not supported"
            return 0
        }
-       puts $wrapper
-       global srcdir
        set status [remote_exec host "$wrapper true -v >/dev/null"]
        if { [lindex $status 0] != 0 } {
            verbose "autofdo not supported because perf does not work"

Reply via email to