OSDN Git Service

2001-09-07 Frank Ch. Eigler <fche@redhat.com>
authorfche <fche>
Fri, 7 Sep 2001 20:25:28 +0000 (20:25 +0000)
committerfche <fche>
Fri, 7 Sep 2001 20:25:28 +0000 (20:25 +0000)
* lib/target.exp (prune_warnings): Tolerate g++ cpplib warnings
for -isystem vs. -I duplication.

dejagnu/ChangeLog
dejagnu/lib/target.exp

index 1740c63..caffe0f 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-07  Frank Ch. Eigler  <fche@redhat.com>
+
+       * lib/target.exp (prune_warnings): Tolerate g++ cpplib warnings
+       for -isystem vs. -I duplication.
+
 2001-08-24  Frank Ch. Eigler  <fche@redhat.com>
 
        * baseboards/basic-sid.exp (find_sid_conf): Tolerate not finding
index f71c6f6..e50df20 100644 (file)
@@ -271,6 +271,10 @@ proc prune_warnings { text } {
     # Libgloss libnosys defines functions that warn when linked in
     regsub -all "(^|\n)\[^\n\]*: In function\[^\n\]*\n\[^\n\]\[^\n\]*is not implemented and will always fail\[^\n\]*" $text "" text
 
+    # libstdc++-v3 tests can emit cpplib warnings due to duplicate -isystem / -I flags
+    regsub -all "(^|\n)\[^\n\]*: warning: changing search order for system directory\[^\n\]*" $text "" text
+    regsub -all "(^|\n)\[^\n\]*: warning:   as it has already been specified\[^\n\]*" $text "" text
+
     # It might be tempting to get carried away and delete blank lines, etc.
     # Just delete *exactly* what we're ask to, and that's it.
     return $text