This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix for PR other/2539: contrib/test_summary reports wrong version
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Subject: Fix for PR other/2539: contrib/test_summary reports wrong version
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Date: Wed, 18 Apr 2001 01:49:49 -0000
This fixes PR other/2539: contrib/test_summary reports wrong version. The
test_summary script takes the gcc version from the last .sum file it
processes. For me this is libstdc++-v3, rather than the compiler. This is
required on trunk, and will be required on 3.0 branch once it moves to
dejagnu testsuite for libstdc++.
Please excuse line wrapping and apply if OK
2000-04-18 David Billinghurst <David.Billinghurst@riotinto.com>
* test_summary: Do not take version from libstdc++-v3.sum
Index: test_summary
===================================================================
RCS file: /cvs/gcc/egcs/contrib/test_summary,v
retrieving revision 1.17
diff -u -r1.17 test_summary
--- test_summary 2000/12/28 19:28:11 1.17
+++ test_summary 2001/04/18 01:43:21
@@ -106,7 +106,7 @@
/^[ ]*=== [^ ]+ tests ===/ {
if (lang == "") lang = " "$2" "; else lang = " ";
}
-$2 == "version" { save = $0; $1 = ""; $2 = ""; version = $0; gsub(/^ */,
"", version); gsub(/\r$/, "", version); $0 = save; }
+($2 == "version") && ($1 !~ /libstdc/) { save = $0; $1 = ""; $2 = "";
version = $0; gsub(/^ */, "", version); gsub(/\r$/, "", version); $0 = save;
}
/\===.*Summary/ { print ""; print; blanks=1; }
/tests ===/ || /^(Target|Host|Native)/ || $2 == "version" { print;
blanks=1; }
/^(XPASS|FAIL|# of )/ { print; }