OSDN Git Service

2003-06-16 Andreas Jaeger <aj@suse.de>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Jun 2003 22:09:03 +0000 (22:09 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Jun 2003 22:09:03 +0000 (22:09 +0000)
        * testsuite/abi_check.cc: Create summary report.

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

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/abi_check.cc

index b9df740..edc2e5b 100644 (file)
@@ -1,3 +1,7 @@
+2003-06-16  Andreas Jaeger  <aj@suse.de>
+        
+        * testsuite/abi_check.cc: Create summary report.
 2003-06-16  Paolo Carlini  <pcarlini@unitus.it>
 
        * testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
index 51c384f..c276825 100644 (file)
@@ -412,25 +412,40 @@ main(int argc, char** argv)
     }
 
   // Report results.
-  cout << added_names.size() << " added symbols " << endl;
-  for (size_t j = 0; j < added_names.size() ; ++j)
-    report_symbol_info(test_symbols[added_names[j]], j + 1);
-
-  cout << missing_names.size() << " missing symbols " << endl;
-  for (size_t j = 0; j < missing_names.size() ; ++j)
-    report_symbol_info(baseline_symbols[missing_names[j]], j + 1);
-
-  cout << incompatible.size() << " incompatible symbols " << endl;
-  for (size_t j = 0; j < incompatible.size() ; ++j)
+  if (added_names.size())
     {
-      // First, report name.
-      const symbol_info& base = incompatible[j].first;
-      const symbol_info& test = incompatible[j].second;
-      report_symbol_info(test, j + 1, false);
-
-      // Second, report reason or reasons incompatible.
-      check_compatible(base, test, true);
+      cout << added_names.size() << " added symbols " << endl;
+      for (size_t j = 0; j < added_names.size() ; ++j)
+       report_symbol_info(test_symbols[added_names[j]], j + 1);
+    }
+  
+  if (missing_names.size())
+    {
+      cout << missing_names.size() << " missing symbols " << endl;
+      for (size_t j = 0; j < missing_names.size() ; ++j)
+       report_symbol_info(baseline_symbols[missing_names[j]], j + 1);
     }
+  
+  if (incompatible.size ())
+    {
+      cout << incompatible.size() << " incompatible symbols " << endl;
+      for (size_t j = 0; j < incompatible.size() ; ++j)
+       {
+         // First, report name.
+         const symbol_info& base = incompatible[j].first;
+         const symbol_info& test = incompatible[j].second;
+         report_symbol_info(test, j + 1, false);
+         
+         // Second, report reason or reasons incompatible.
+         check_compatible(base, test, true);
+       }
+    }
+  
+  cout << "\n\t\t=== libstdc++-v3 check-abi Summary for " << baseline_file 
+       << " ===" << endl << endl;
+  cout << "# of added symbols:\t\t " << added_names.size() << endl;
+  cout << "# of missing symbols:\t\t " << missing_names.size() << endl;
+  cout << "# of incompatible symbols:\t " << incompatible.size() << endl;
 
   return 0;
 }