]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
50594.cc: For mingw-targets use only static libstdc++-version.
authorKai Tietz <ktietz@redhat.com>
Mon, 25 Mar 2013 10:47:39 +0000 (11:47 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Mon, 25 Mar 2013 10:47:39 +0000 (11:47 +0100)
* testsuite/18_support/50594.cc: For mingw-targets use only static
libstdc++-version.
* testsuite/19_diagnostics/error_category/operators/equal.cc
* testsuite/19_diagnostics/error_code/cons/1.cc
* testsuite/19_diagnostics/error_code/operators/bool.cc
* testsuite/19_diagnostics/error_code/operators/equal.cc
* testsuite/19_diagnostics/error_code/operators/not_equal.cc
* testsuite/19_diagnostics/error_condition/cons/1.cc
* testsuite/19_diagnostics/error_condition/operators/bool.cc
* testsuite/19_diagnostics/error_condition/operators/equal.cc
* testsuite/19_diagnostics/error_condition/operators/not_equal.cc
* testsuite/23_containers/set/requirements/exception/basic.cc
* testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc
* testsuite/lib/dg-options.exp (dg-additional-options): New option.

From-SVN: r197032

14 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/18_support/50594.cc
libstdc++-v3/testsuite/19_diagnostics/error_category/operators/equal.cc
libstdc++-v3/testsuite/19_diagnostics/error_code/cons/1.cc
libstdc++-v3/testsuite/19_diagnostics/error_code/operators/bool.cc
libstdc++-v3/testsuite/19_diagnostics/error_code/operators/equal.cc
libstdc++-v3/testsuite/19_diagnostics/error_code/operators/not_equal.cc
libstdc++-v3/testsuite/19_diagnostics/error_condition/cons/1.cc
libstdc++-v3/testsuite/19_diagnostics/error_condition/operators/bool.cc
libstdc++-v3/testsuite/19_diagnostics/error_condition/operators/equal.cc
libstdc++-v3/testsuite/19_diagnostics/error_condition/operators/not_equal.cc
libstdc++-v3/testsuite/23_containers/set/requirements/exception/basic.cc
libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc
libstdc++-v3/testsuite/lib/dg-options.exp

index 4c2c6d9c5f44b860a14953618afcce561c7186a7..c06d6ae54944f40d90bfbeddd74b8fedf3f1a7ff 100644 (file)
@@ -1,3 +1,20 @@
+2013-03-25  Kai Tietz  <ktietz@redhat.com>
+
+       * testsuite/18_support/50594.cc: For mingw-targets use only static
+       libstdc++-version.
+       * testsuite/19_diagnostics/error_category/operators/equal.cc
+       * testsuite/19_diagnostics/error_code/cons/1.cc
+       * testsuite/19_diagnostics/error_code/operators/bool.cc
+       * testsuite/19_diagnostics/error_code/operators/equal.cc
+       * testsuite/19_diagnostics/error_code/operators/not_equal.cc
+       * testsuite/19_diagnostics/error_condition/cons/1.cc
+       * testsuite/19_diagnostics/error_condition/operators/bool.cc
+       * testsuite/19_diagnostics/error_condition/operators/equal.cc
+       * testsuite/19_diagnostics/error_condition/operators/not_equal.cc
+       * testsuite/23_containers/set/requirements/exception/basic.cc
+       * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc
+       * testsuite/lib/dg-options.exp (dg-additional-options): New option.
+
 2013-03-24  Jonathan Wakely  <jwakely.gcc@gmail.com>
 
        PR libstdc++/56170
index c78cb387c558030fbb991b27286468801f092568..715fe64dd021d982830e8d2fa1fd86fb38143e26 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-options "-fwhole-program" }
+// { dg-additional-options "-static-libstdc++" { target *-*-mingw* } }
 
 // Copyright (C) 2011-2013 Free Software Foundation, Inc.
 //
index dc66122ef0c4d2d180a5ccde374163dcc80fa719..23eeb0288a6c74c45e267b890bc8c11919e2688c 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-options "-std=gnu++0x" }
+// { dg-additional-options "-static-libgcc" { target *-*-mingw* } }
 // 2007-08-22 Benjamin Kosnik  <bkoz@redhat.com>
 
 // Copyright (C) 2007-2013 Free Software Foundation, Inc.
index 687fbd658a023deed39f955c858f7287f4f0d2f0..31ac0e0640bbfed07cabc18070531deeb68b3ea9 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-options "-std=gnu++0x" }
+// { dg-additional-options "-static-libstdc++" { target *-*-mingw* } }
 // 2007-08-22 Benjamin Kosnik  <bkoz@redhat.com>
 
 // Copyright (C) 2007-2013 Free Software Foundation, Inc.
index 3266be07c78a063b83d549ce3a05ef782f96405e..6bbc99035c7233428da862d37fc9877ce740a227 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-options "-std=gnu++0x" }
+// { dg-additional-options "-static-libstdc++" { target *-*-mingw* } }
 // 2007-08-22 Benjamin Kosnik  <bkoz@redhat.com>
 
 // Copyright (C) 2007-2013 Free Software Foundation, Inc.
index b886046813cc00f0144b309286b3d71f17cf5a3d..4c03ba0e43583b1bce8cb3890e70c26c7c512bdb 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-options "-std=gnu++0x" }
+// { dg-additional-options "-static-libstdc++" { target *-*-mingw* } }
 // 2007-08-22 Benjamin Kosnik  <bkoz@redhat.com>
 
 // Copyright (C) 2007-2013 Free Software Foundation, Inc.
index 99a58c30cf4f41d7f217362ff5e4d377abc3e258..195e416f5f371f324b1e4de636c12d37dbcf7445 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-options "-std=gnu++0x" }
+// { dg-additional-options "-static-libstdc++" { target *-*-mingw* } }
 // 2007-08-22 Benjamin Kosnik  <bkoz@redhat.com>
 
 // Copyright (C) 2007-2013 Free Software Foundation, Inc.
index 55353dca2894d873b6b57e60ae5579c7cbb3d0e1..f083294955ea147e21d57b02838c4de532a58a18 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-options "-std=gnu++0x" }
+// { dg-additional-options "-static-libstdc++" { target *-*-mingw* } }
 
 // Copyright (C) 2008-2013 Free Software Foundation, Inc.
 //
index 90ff4a423e41efa085665078f62ac65426f5ffd5..01d6f8d3d773783c80acfade8857b98262bfa5d7 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-options "-std=gnu++0x" }
+// { dg-additional-options "-static-libstdc++" { target *-*-mingw* } }
 
 // Copyright (C) 2008-2013 Free Software Foundation, Inc.
 //
index c80a772454e33fc430787af8985311dc447a0fd9..e5a622735cacbf659774b7e094859adbe9c8363e 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-options "-std=gnu++0x" }
+// { dg-additional-options "-static-libstdc++" { target *-*-mingw* } }
 
 // Copyright (C) 2008-2013 Free Software Foundation, Inc.
 //
index 7281c650dbcfaca19b73d8e9ca2e12dae5a4fffb..fa5eea67bb650010934fd782095184ddcd2faedc 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-options "-std=gnu++0x" }
+// { dg-additional-options "-static-libstdc++" { target *-*-mingw* } }
 
 // Copyright (C) 2008-2013 Free Software Foundation, Inc.
 //
index d44327f6c10d37c9aaa1f184082f9f89a605098d..2de0308d18ff28f2e9e8d54ce8761011b191f8b5 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-options "-std=gnu++0x" }
+// { dg-additional-options "-static-libstdc++" { target *-*-mingw* } }
 // { dg-require-cstdint "" }
 
 // 2009-11-30  Benjamin Kosnik  <benjamin@redhat.com>
index 12126040e1e6fca29be3420c748bea0a836f03b6..d7ad5fecf59cf50674818e4bf0a12e7aac90c4b2 100644 (file)
@@ -20,8 +20,8 @@
 // { dg-do compile }
 // { dg-add-options no_pch }
 
-// { dg-xfail-if "" { { *-*-linux* *-*-darwin* *-*-solaris2.1[0-9]* hppa*-*-hpux* } || { uclibc || newlib } } { "*" } { "" } }
-// { dg-excess-errors "" { target { { *-*-linux* *-*-darwin* *-*-solaris2.1[0-9]* hppa*-*-hpux* } || { uclibc || newlib } } } }
+// { dg-xfail-if "" { { *-*-linux* *-*-darwin* *-*-solaris2.1[0-9]* hppa*-*-hpux* *-*-mingw* } || { uclibc || newlib } } { "*" } { "" } }
+// { dg-excess-errors "" { target { { *-*-linux* *-*-darwin* *-*-solaris2.1[0-9]* hppa*-*-hpux* *-*-mingw* } || { uclibc || newlib } } } }
 
 #include <math.h>
 
index d15fc219ae86d0198cf958fd444f73deb3b8d61e..e2640ee98eea495d8df62d5c35074776b28f520d 100644 (file)
@@ -218,3 +218,25 @@ proc add_options_for_no_pch { flags } {
     # This forces any generated and possibly included PCH to be invalid.
     return "-D__GLIBCXX__=99999999"
 }
+
+# Like dg-options, but adds to the default options rather than replacing them.
+
+proc dg-additional-options { args } {
+    upvar dg-extra-tool-flags extra-tool-flags
+
+    if { [llength $args] > 3 } {
+        error "[lindex $args 0]: too many arguments"
+        return
+    }
+
+    if { [llength $args] >= 3 } {
+        switch [dg-process-target [lindex $args 2]] {
+            "S" { eval lappend extra-tool-flags [lindex $args 1] }
+            "N" { }
+            "F" { error "[lindex $args 0]: `xfail' not allowed here" }
+            "P" { error "[lindex $args 0]: `xfail' not allowed here" }
+        }
+    } else {
+        eval lappend extra-tool-flags [lindex $args 1]
+    }
+}