OSDN Git Service

* lib/f-torture.exp (f_torture_compile): Prune the warnings before
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Jan 2001 16:11:34 +0000 (16:11 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Jan 2001 16:11:34 +0000 (16:11 +0000)
testing that no relevant ones were found.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38944 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/lib/f-torture.exp

index 31a45bf..52c7aed 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-12  Richard Earnshaw <rearnsha@arm.com>
+
+       * lib/f-torture.exp (f_torture_compile): Prune the warnings before
+       testing that no relevant ones were found.
+
 2001-01-12  Nathan Sidwell  <nathan@codesourcery.com>
 
        * g++.old-deja/g++.pt/cast2.C: New test.
index b8721a5..b9ae904 100644 (file)
@@ -89,6 +89,9 @@ proc f-torture-compile { src option } {
        return
     }
 
+    # Prune warnings we know are unwanted.
+    set comp_output [prune_warnings $comp_output]
+
     # We shouldn't get these because of -w, but just in case.
     if [string match "*77*:*warning:*" $comp_output] then {
        warning "$testcase: (with warnings) $option"
@@ -98,8 +101,6 @@ proc f-torture-compile { src option } {
        return
     }
 
-    set comp_output [prune_warnings $comp_output]
-
     set unsupported_message [g77_check_unsupported_p $comp_output]
     if { $unsupported_message != "" } {
        unsupported "$testcase: $unsupported_message"