aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib/profopt.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/lib/profopt.exp')
-rw-r--r--gcc/testsuite/lib/profopt.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/profopt.exp b/gcc/testsuite/lib/profopt.exp
index a33742cdb85..0ba87fef497 100644
--- a/gcc/testsuite/lib/profopt.exp
+++ b/gcc/testsuite/lib/profopt.exp
@@ -221,7 +221,7 @@ proc profopt-execute { src } {
error "No feedback option specified for second compile."
}
- regsub "^$srcdir/?" $src "" testcase
+ regsub "(?q)$srcdir/" $src "" testcase
# If we couldn't rip $srcdir out of `src' then just do the best we can.
# The point is to reduce the unnecessary noise in the logs. Don't strip
# out too much because different testcases with the same name can confuse