prune.exp (prune_gcc_output): Ignore Cygwin warning about ignoring -fpic.
authorJason Merrill <jason@redhat.com>
Thu, 21 Mar 2002 00:29:09 +0000 (19:29 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 21 Mar 2002 00:29:09 +0000 (19:29 -0500)
        * 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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.ext/instantiate3.C
gcc/testsuite/g++.old-deja/g++.jason/template18.C
gcc/testsuite/lib/old-dejagnu.exp
gcc/testsuite/lib/prune.exp

index ca6d0b2c1d11cefcef9a9f2a120c108c1d68a4c3..00722ab05106db79d40cb61e1c1c2e7da53cbc25 100644 (file)
@@ -1,3 +1,10 @@
+2002-03-20  Jason Merrill  <jason@redhat.com>
+
+       * 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.
+
 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
 
        * gcc.c-torture/compile/20020320-1.c: New test.
index 18d5a579c88cfdcb0bd35ca6dc0607f1623cc6ec..f3149d1caa7cd5650de8a534b87d4addd445067e 100644 (file)
@@ -10,7 +10,7 @@ template <class T> struct A {
 inline template struct A<int>;
 
 A<int> a;                      // gets bogus error
-A<char> b;                     // ERROR - not instantiated XFAIL mips*-*-* *-*-hpux*
+A<char> b;                     // ERROR - not instantiated XFAIL mips*-*-* *-*-hpux* i?86-pc-cygwin
                                // Irix's default linker does not
                                // produce line numbers so XFAIL it.
                                // Similarly for HPUX.
index fa004d2c9ab00dd8e506a31bf98a81e00c431697..e57739baba9ffc9ffe192f11a9d9ba686f7df3e8 100644 (file)
@@ -4,6 +4,10 @@
 
 // We mark this XFAIL because we can't test for expected linker errors.
 // If we get an XPASS for this testcase, that's a bug.
+
+// Suppressed-instantiation tests like this are known to break on
+// Cygwin, because of the MULTIPLE_SYMBOL_SPACES stuff.  This is OK.
+
 // (OK) excess errors test - XFAIL *-*-*
 
 #pragma implementation "irrelevant_file"
index 105c37d56058612e43dd3df86a12ba41d99c461b..2e2acff2bd4b9260b955fa4526b53ddb74bb10a0 100644 (file)
@@ -443,7 +443,7 @@ proc old-dejagnu { compiler prog name cflagsx default_cflags libs } {
     }
 
     # Delete things like "ld.so: warning" messages.
-    set comp_output [prune_warnings $comp_output]
+    set comp_output [prune_gcc_output [prune_warnings $comp_output]]
 
     if [regexp "Internal (compiler )?error" $comp_output] then {
         if $expect_crash then {
index 2752634bc339db1e1b5d6a1e85c63748dca6abcc..38b24e0ca426c4d1e336aeefbf3ba727db3efd22 100644 (file)
@@ -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