From 9e78e45a8dc2e9bf2886872e4907828ecc1cee57 Mon Sep 17 00:00:00 2001 From: David Billinghurst Date: Mon, 17 Dec 2001 22:39:00 +0000 Subject: [PATCH] prune.exp: New file 2001-12-17 David Billinghurst libstdc++/5136 * testsuite/lib/prune.exp: New file * testsuite/lib/libstdc++-v3-dg.exp: Use it From-SVN: r48133 --- libstdc++-v3/ChangeLog | 6 +++++ .../testsuite/lib/libstdc++-v3-dg.exp | 2 ++ libstdc++-v3/testsuite/lib/prune.exp | 25 +++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 libstdc++-v3/testsuite/lib/prune.exp 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 + + libstdc++/5136 + * testsuite/lib/prune.exp: New file + * testsuite/lib/libstdc++-v3-dg.exp: Use it + 2001-12-17 Phil Edwards * 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 +}