aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib/prune.exp
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2002-03-20 19:29:09 -0500
committerJason Merrill <jason@gcc.gnu.org>2002-03-20 19:29:09 -0500
commit617d988c057ee8dea59a796717596e7604a6e05f (patch)
tree190ab28a44b232a3dc647eb0ebfbe61af0625baf /gcc/testsuite/lib/prune.exp
parent1de21d0eac4b279d994709b0cd30bae0c9e711c7 (diff)
downloadgcc-617d988c057ee8dea59a796717596e7604a6e05f.zip
gcc-617d988c057ee8dea59a796717596e7604a6e05f.tar.gz
gcc-617d988c057ee8dea59a796717596e7604a6e05f.tar.bz2
prune.exp (prune_gcc_output): Ignore Cygwin warning about ignoring -fpic.
* lib/prune.exp (prune_gcc_output): Ignore Cygwin warning about ignoring -fpic. * lib/old-dejagnu.exp (old-dejagnu): Also pass compiler output through prune_gcc_output. From-SVN: r51102
Diffstat (limited to 'gcc/testsuite/lib/prune.exp')
-rw-r--r--gcc/testsuite/lib/prune.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp
index 2752634..38b24e0 100644
--- a/gcc/testsuite/lib/prune.exp
+++ b/gcc/testsuite/lib/prune.exp
@@ -24,6 +24,9 @@ proc prune_gcc_output { text } {
regsub -all "(^|\n)collect2: ld returned \[^\n\]*" $text "" text
regsub -all "(^|\n)Please submit.*instructions\[^\n\]*" $text "" text
+ # Ignore harmless -fpic warnings on cygwin.
+ regsub -all "(^|\n)\[^\n\]*: warning: -f(pic|PIC) ignored for target\[^\n\]*" $text "" text
+
# It would be nice to avoid passing anything to gcc that would cause it to
# issue these messages (since ignoring them seems like a hack on our part),
# but that's too difficult in the general case. For example, sometimes