summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorbillingd <billingd@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-17 22:39:00 +0000
committerbillingd <billingd@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-17 22:39:00 +0000
commit9938224ec3c3bbe175b5eb1d846a650e49e4bd3d (patch)
tree8679836d90890e49c172644cf77a6f18e48bd263 /libstdc++-v3
parenta1f25e231b431ba7afecc4aa7c7aa4387f33fb40 (diff)
downloadgcc-9938224ec3c3bbe175b5eb1d846a650e49e4bd3d.tar.gz
2001-12-17 David Billinghurst <David.Billinghurst@riotinto.com>
libstdc++/5136 * testsuite/lib/prune.exp: New file * testsuite/lib/libstdc++-v3-dg.exp: Use it git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48133 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp2
-rw-r--r--libstdc++-v3/testsuite/lib/prune.exp25
3 files changed, 33 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 8ef11b77c83..71b14daf116 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2001-12-17 David Billinghurst <David.Billinghurst@riotinto.com>
+
+ libstdc++/5136
+ * testsuite/lib/prune.exp: New file
+ * testsuite/lib/libstdc++-v3-dg.exp: Use it
+
2001-12-17 Phil Edwards <pme@gcc.gnu.org>
* include/bits/basic_file.h (__basic_file::fd): New function.
diff --git a/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp b/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp
index 6c0cb4abe14..d63301c98c2 100644
--- a/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp
+++ b/libstdc++-v3/testsuite/lib/libstdc++-v3-dg.exp
@@ -18,6 +18,7 @@
load_lib dg.exp
load_lib libgloss.exp
+load_lib prune.exp
proc libstdc++-v3-copy-files {srcfiles dstdir} {
foreach f $srcfiles {
@@ -146,6 +147,7 @@ proc libstdc++-v3-dg-test { prog do_what extra_tool_flags } {
}
set comp_output [libstdc++-v3_target_compile "$prog" "$output_file" "$compile_type" $options];
+ set comp_output [ prune_g++_output $comp_output ];
return [list $comp_output $output_file]
}
diff --git a/libstdc++-v3/testsuite/lib/prune.exp b/libstdc++-v3/testsuite/lib/prune.exp
new file mode 100644
index 00000000000..3fcbf306b60
--- /dev/null
+++ b/libstdc++-v3/testsuite/lib/prune.exp
@@ -0,0 +1,25 @@
+# Copyright (C) 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+# Prune messages from g++ that aren't useful.
+
+proc prune_g++_output { text } {
+
+ # Cygwin warns about -ffunction-sections
+ regsub -all "(^|\n)\[^\n\].*: -ffunction-sections may affect debugging on some targets.*" $text "" text
+
+ return $text
+}