[gcc(refs/users/aoliva/heads/testme)] match .exe when prunning collect2 errors
Alexandre Oliva
aoliva@gcc.gnu.org
Wed Jun 10 21:24:34 GMT 2020
https://gcc.gnu.org/g:ae49995b4903cefa3530beb7300600d489a3add2
commit ae49995b4903cefa3530beb7300600d489a3add2
Author: Alexandre Oliva <oliva@adacore.com>
Date: Tue May 26 00:56:21 2020 -0300
match .exe when prunning collect2 errors
When collect* programs have an executable suffix, they may include it
in their outputs. Match them when pruning gcc output.
for gcc/testsuite/ChangeLog
* lib/prune.exp (prune_gcc_output): Optionally match executable
suffix in collect messages.
Diff:
---
gcc/testsuite/lib/prune.exp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp
index eea4bf383a7..1c776249f1a 100644
--- a/gcc/testsuite/lib/prune.exp
+++ b/gcc/testsuite/lib/prune.exp
@@ -38,8 +38,8 @@ proc prune_gcc_output { text } {
regsub -all "(^|\n)\[^\n\]*: in .constexpr. expansion \[^\n\]*" $text "" text
regsub -all "(^|\n)\[^\n\]*: in requirements \[^\n\]*" $text "" text
regsub -all "(^|\n) inlined from \[^\n\]*" $text "" text
- regsub -all "(^|\n)collect2: error: ld returned \[^\n\]*" $text "" text
- regsub -all "(^|\n)collect: re(compiling|linking)\[^\n\]*" $text "" text
+ regsub -all "(^|\n)\[^\n\]*: error: ld returned \[^\n\]*" $text "" text
+ regsub -all "(^|\n)\[^\n\]*: re(compiling|linking)\[^\n\]*" $text "" text
regsub -all "(^|\n)Please submit.*instructions\[^\n\]*" $text "" text
regsub -all "(^|\n)\[0-9\]\[0-9\]* errors\." $text "" text
regsub -all "(^|\n)(In file included|\[ \]+from)\[^\n\]*" $text "" text
More information about the Gcc-cvs
mailing list