Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
5595de0f
Commit
5595de0f
authored
May 15, 2005
by
Mark Mitchell
Committed by
Mark Mitchell
May 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lib/compat.exp (compat-execute): Do not use regsub unsafely.
From-SVN: r99747
parent
3b523c85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/lib/compat.exp
+11
-2
No files found.
gcc/testsuite/ChangeLog
View file @
5595de0f
2005
-
05
-
15
Mark
Mitchell
<
mark
@codesourcery
.
com
>
*
lib
/
compat
.
exp
(
compat
-
execute
)
:
Do
not
use
regsub
unsafely
.
2005
-
05
-
15
Jerry
DeLisle
<
jvdelisle
@verizon
.
net
>
2005
-
05
-
15
Jerry
DeLisle
<
jvdelisle
@verizon
.
net
>
PR
fortran
/
17432
PR
fortran
/
17432
...
...
gcc/testsuite/lib/compat.exp
View file @
5595de0f
...
@@ -279,8 +279,17 @@ proc compat-execute { src1 sid use_alt } {
...
@@ -279,8 +279,17 @@ proc compat-execute { src1 sid use_alt } {
regsub "sid" "sid_y_alt.o" $sid obj3_alt
regsub "sid" "sid_y_alt.o" $sid obj3_alt
# Get the base name of this test, for use in messages.
# Get the base name of this test, for use in messages.
regsub "^$srcdir/?" $src1 "" testcase
set testcase "$src1"
regsub "^$tmpdir/?" $testcase "tmpdir-" testcase
# Remove the $srcdir and $tmpdir prefixes from $src1. (It would
# be possible to use "regsub" here, if we were careful to escape
# all regular expression characters in $srcdir and $tmpdir, but
# that would be more complicated that this approach.)
if {[string first "$srcdir/" "$src1"] == 0} {
set testcase [string range "$src1" [string length "$srcdir/"] end]
}
if {[string first "$tmpdir/" "$src1"] == 0} {
set testcase [string range "$src1" [string length "$tmpdir/"] end]
}
regsub "_main.*" $testcase "" testcase
regsub "_main.*" $testcase "" testcase
# Set up the base name of executable files so they'll be unique.
# Set up the base name of executable files so they'll be unique.
regsub -all "\[./\]" $testcase "-" execbase
regsub -all "\[./\]" $testcase "-" execbase
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment