* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121749
138bc75d-0d04-0410-961f-
82ee72b054a4
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.
* lib/target-supports.exp (check_effective_target_uclibc): New
function.
}]
}
+# 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.
# 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
// 22.2.2.1.1 num_get members
+// { dg-do run { xfail lax_strtofp } }
+
#include <locale>
#include <sstream>
#include <testsuite_hooks.h>
// 22.2.2.1.1 num_get members
+// { dg-do run { xfail lax_strtofp } }
+
#include <locale>
#include <sstream>
#include <testsuite_hooks.h>
// 22.2.5.3.1 time_put members
+// { dg-do run { xfail dummy_wcsftime } }
+
#include <locale>
#include <sstream>
#include <testsuite_hooks.h>
// 22.2.5.3.1 time_put members
+// { dg-do run { xfail dummy_wcsftime } }
+
#include <locale>
#include <sstream>
#include <testsuite_hooks.h>
// 22.2.5.3.1 time_put members
+// { dg-do run { xfail dummy_wcsftime } }
+
#include <locale>
#include <sstream>
#include <testsuite_hooks.h>
// 22.2.5.3.1 time_put members
+// { dg-do run { xfail dummy_wcsftime } }
+
#include <locale>
#include <sstream>
#include <testsuite_hooks.h>
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
-// { dg-do compile }
+// { dg-do compile { xfail uclibc } }
+// { dg-excess-errors "" { target uclibc } }
#include <cmath>
// invalidate any other reasons why the executable file might be covered by
// the GNU General Public License.
-// { dg-do compile { xfail *-*-linux* *-*-darwin* } }
-// { dg-excess-errors "" { target *-*-linux* *-*-darwin* } }
+// { dg-do compile { xfail { { *-*-linux* *-*-darwin* } || uclibc } } }
+// { dg-excess-errors "" { target { { *-*-linux* *-*-darwin* } || uclibc } } }
#include <math.h>
// 27.6.1.2.2 arithmetic extractors
+// { dg-do run { xfail lax_strtofp } }
+
#include <istream>
#include <sstream>
#include <locale>
// XXX This test fails on sparc-solaris2 because of a bug in libc
// XXX sscanf for very long input. See:
// 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 <sstream>
// 27.6.1.2.2 arithmetic extractors
+// { dg-do run { xfail lax_strtofp } }
+
#include <istream>
#include <sstream>
#include <locale>
// XXX This test fails on sparc-solaris2 because of a bug in libc
// XXX sscanf for very long input. See:
// 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 <sstream>
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
// USA.
+// { dg-do run { xfail lax_strtofp } }
+
#include <cmath> // for abs
#include <cfloat> // for DBL_EPSILON
#include <sstream>
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
// USA.
+// { dg-do run { xfail lax_strtofp } }
+
#include <cmath> // for abs
#include <cfloat> // for DBL_EPSILON
#include <sstream>
--- /dev/null
+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.
+