mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-16 08:30:31 +08:00
prune.exp: New file
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 From-SVN: r48133
This commit is contained in:
parent
ee54071454
commit
9e78e45a8d
@ -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.
|
||||
|
@ -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]
|
||||
}
|
||||
|
25
libstdc++-v3/testsuite/lib/prune.exp
Normal file
25
libstdc++-v3/testsuite/lib/prune.exp
Normal file
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user