50594.cc: For mingw-targets use only static libstdc++-version.

* 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
This commit is contained in:
Kai Tietz 2013-03-25 11:47:39 +01:00 committed by Kai Tietz
parent 76421b449b
commit c0f6f2b4f2
14 changed files with 52 additions and 2 deletions

View 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

View File

@ -1,4 +1,5 @@
// { dg-options "-fwhole-program" }
// { dg-additional-options "-static-libstdc++" { target *-*-mingw* } }
// Copyright (C) 2011-2013 Free Software Foundation, Inc.
//

View 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.

View 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.

View 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.

View 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.

View 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.

View 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.
//

View 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.
//

View 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.
//

View 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.
//

View 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>

View 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>

View 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]
}
}