Commit a5ea7a0b by Richard Sandiford Committed by Richard Sandiford

gcc/testsuite/

	* lib/target-supports.exp (check_effective_target_lax_strtofp)
	(check_effective_target_dummy_wcsftime): New functions.

libstdc++-v3/testsuite/
	* 22_locale/time_put/put/wchar_t/1.cc: XFAIL if dummy_wcsftime.
	* 22_locale/time_put/put/wchar_t/5.cc: Likewise.
	* 22_locale/time_put/put/wchar_t/9.cc: Likewise.
	* 22_locale/time_put/put/wchar_t/10.cc: Likewise.
	* 22_locale/num_get/get/wchar_t/2.cc: XFAIL if lax_strtofp.
	* 22_locale/num_get/get/char/2.cc: Likewise.
	* 27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc: Likewise.
	* 27_io/basic_istream/extractors_arithmetic/wchar_t/09.cc: Likewise.
	* 27_io/basic_istream/extractors_arithmetic/char/12.cc: Likewise.
	* 27_io/basic_istream/extractors_arithmetic/char/09.cc: Likewise.
	* 27_io/basic_ostream/inserters_arithmetic/wchar_t/6.cc: Likewise.
	* 27_io/basic_ostream/inserters_arithmetic/char/6.cc: Likewise.
	* 26_numerics/cmath/c99_classification_macros_c++.cc: XFAIL
	for uClibc.
	* 26_numerics/cmath/c99_classification_macros_c.cc: Likewise.

From-SVN: r121749
parent 2755c056
2007-02-09 Richard Sandiford <richard@codesourcery.com> 2007-02-09 Richard Sandiford <richard@codesourcery.com>
* lib/target-supports.exp (check_effective_target_lax_strtofp)
(check_effective_target_dummy_wcsftime): New functions.
2007-02-09 Richard Sandiford <richard@codesourcery.com>
* gcc.c-torture/execute/20030125-1.x: Return 1 for uClibc targets. * gcc.c-torture/execute/20030125-1.x: Return 1 for uClibc targets.
* lib/target-supports.exp (check_effective_target_uclibc): New * lib/target-supports.exp (check_effective_target_uclibc): New
function. function.
...@@ -2045,6 +2045,24 @@ proc check_effective_target_uclibc {} { ...@@ -2045,6 +2045,24 @@ proc check_effective_target_uclibc {} {
}] }]
} }
# Return 1 if
# (a) an error of a few ULP is expected in string to floating-point
# conversion functions; and
# (b) overflow is not always detected correctly by those functions.
proc check_effective_target_lax_strtofp {} {
# By default, assume that all uClibc targets suffer from this.
return [check_effective_target_uclibc]
}
# Return 1 if this is a target for which wcsftime is a dummy
# function that always returns 0.
proc check_effective_target_dummy_wcsftime {} {
# By default, assume that all uClibc targets suffer from this.
return [check_effective_target_uclibc]
}
# Return 1 if the target matches the effective target 'arg', 0 otherwise. # Return 1 if the target matches the effective target 'arg', 0 otherwise.
# This can be used with any check_* proc that takes no argument and # This can be used with any check_* proc that takes no argument and
# returns only 1 or 0. It could be used with check_* procs that take # returns only 1 or 0. It could be used with check_* procs that take
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
// 22.2.2.1.1 num_get members // 22.2.2.1.1 num_get members
// { dg-do run { xfail lax_strtofp } }
#include <locale> #include <locale>
#include <sstream> #include <sstream>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
// 22.2.2.1.1 num_get members // 22.2.2.1.1 num_get members
// { dg-do run { xfail lax_strtofp } }
#include <locale> #include <locale>
#include <sstream> #include <sstream>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
// 22.2.5.3.1 time_put members // 22.2.5.3.1 time_put members
// { dg-do run { xfail dummy_wcsftime } }
#include <locale> #include <locale>
#include <sstream> #include <sstream>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
// 22.2.5.3.1 time_put members // 22.2.5.3.1 time_put members
// { dg-do run { xfail dummy_wcsftime } }
#include <locale> #include <locale>
#include <sstream> #include <sstream>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
// 22.2.5.3.1 time_put members // 22.2.5.3.1 time_put members
// { dg-do run { xfail dummy_wcsftime } }
#include <locale> #include <locale>
#include <sstream> #include <sstream>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
// 22.2.5.3.1 time_put members // 22.2.5.3.1 time_put members
// { dg-do run { xfail dummy_wcsftime } }
#include <locale> #include <locale>
#include <sstream> #include <sstream>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
......
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
// invalidate any other reasons why the executable file might be covered by // invalidate any other reasons why the executable file might be covered by
// the GNU General Public License. // the GNU General Public License.
// { dg-do compile } // { dg-do compile { xfail uclibc } }
// { dg-excess-errors "" { target uclibc } }
#include <cmath> #include <cmath>
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
// invalidate any other reasons why the executable file might be covered by // invalidate any other reasons why the executable file might be covered by
// the GNU General Public License. // the GNU General Public License.
// { dg-do compile { xfail *-*-linux* *-*-darwin* } } // { dg-do compile { xfail { { *-*-linux* *-*-darwin* } || uclibc } } }
// { dg-excess-errors "" { target *-*-linux* *-*-darwin* } } // { dg-excess-errors "" { target { { *-*-linux* *-*-darwin* } || uclibc } } }
#include <math.h> #include <math.h>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
// 27.6.1.2.2 arithmetic extractors // 27.6.1.2.2 arithmetic extractors
// { dg-do run { xfail lax_strtofp } }
#include <istream> #include <istream>
#include <sstream> #include <sstream>
#include <locale> #include <locale>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
// XXX This test fails on sparc-solaris2 because of a bug in libc // XXX This test fails on sparc-solaris2 because of a bug in libc
// XXX sscanf for very long input. See: // XXX sscanf for very long input. See:
// XXX http://gcc.gnu.org/ml/gcc/2002-12/msg01422.html // XXX http://gcc.gnu.org/ml/gcc/2002-12/msg01422.html
// { dg-do run { xfail sparc*-*-solaris2* } } // { dg-do run { xfail { { sparc*-*-solaris2* } || lax_strtofp } } }
#include <istream> #include <istream>
#include <sstream> #include <sstream>
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
// 27.6.1.2.2 arithmetic extractors // 27.6.1.2.2 arithmetic extractors
// { dg-do run { xfail lax_strtofp } }
#include <istream> #include <istream>
#include <sstream> #include <sstream>
#include <locale> #include <locale>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
// XXX This test fails on sparc-solaris2 because of a bug in libc // XXX This test fails on sparc-solaris2 because of a bug in libc
// XXX sscanf for very long input. See: // XXX sscanf for very long input. See:
// XXX http://gcc.gnu.org/ml/gcc/2002-12/msg01422.html // XXX http://gcc.gnu.org/ml/gcc/2002-12/msg01422.html
// { dg-do run { xfail sparc*-*-solaris2* } } // { dg-do run { xfail { { sparc*-*-solaris2* } || lax_strtofp } } }
#include <istream> #include <istream>
#include <sstream> #include <sstream>
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
// USA. // USA.
// { dg-do run { xfail lax_strtofp } }
#include <cmath> // for abs #include <cmath> // for abs
#include <cfloat> // for DBL_EPSILON #include <cfloat> // for DBL_EPSILON
#include <sstream> #include <sstream>
......
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
// USA. // USA.
// { dg-do run { xfail lax_strtofp } }
#include <cmath> // for abs #include <cmath> // for abs
#include <cfloat> // for DBL_EPSILON #include <cfloat> // for DBL_EPSILON
#include <sstream> #include <sstream>
......
2007-02-09 Richard Sandiford <richard@codesourcery.com>
* 22_locale/time_put/put/wchar_t/1.cc: XFAIL if dummy_wcsftime.
* 22_locale/time_put/put/wchar_t/5.cc: Likewise.
* 22_locale/time_put/put/wchar_t/9.cc: Likewise.
* 22_locale/time_put/put/wchar_t/10.cc: Likewise.
* 22_locale/num_get/get/wchar_t/2.cc: XFAIL if lax_strtofp.
* 22_locale/num_get/get/char/2.cc: Likewise.
* 27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc: Likewise.
* 27_io/basic_istream/extractors_arithmetic/wchar_t/09.cc: Likewise.
* 27_io/basic_istream/extractors_arithmetic/char/12.cc: Likewise.
* 27_io/basic_istream/extractors_arithmetic/char/09.cc: Likewise.
* 27_io/basic_ostream/inserters_arithmetic/wchar_t/6.cc: Likewise.
* 27_io/basic_ostream/inserters_arithmetic/char/6.cc: Likewise.
* 26_numerics/cmath/c99_classification_macros_c++.cc: XFAIL
for uClibc.
* 26_numerics/cmath/c99_classification_macros_c.cc: Likewise.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment