From 8371ec74262170c41219caadab840bfe3e0a02d1 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Fri, 23 Feb 2007 22:08:01 +0000 Subject: [PATCH] target-supports.exp (check_effective_target_unwrapped): New. * lib/target-supports.exp (check_effective_target_unwrapped): New. * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc: XFAIL for Newlib targets. From-SVN: r122272 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/lib/target-supports.exp | 8 ++++++++ libstdc++-v3/ChangeLog | 5 +++++ .../headers/cmath/c99_classification_macros_c.cc | 4 ++-- 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 45bed9f21a6..846244c5ccc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2007-02-23 Nathan Sidwell + + * lib/target-supports.exp (check_effective_target_unwrapped): New. + 2007-02-23 Paul Thomas PR fortran/30660 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index ec63866614e..786f1fc5726 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2053,6 +2053,14 @@ proc check_effective_target_uclibc {} { }] } +# Return true if this is a Newlib target. + +proc check_effective_target_newlib {} { + return [check_no_compiler_messages newlib object { + #include + }] +} + # Return 1 if # (a) an error of a few ULP is expected in string to floating-point # conversion functions; and diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8956610c3e2..d6481c63230 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2007-02-22 Mark Mitchell + + * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc: + XFAIL for Newlib targets. + 2007-02-22 Simon Martin * testsuite/27_io/basic_ios/cons/char/3.cc: Fixed type mismatches in diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc index a9cd0584a33..f7b714fbcfa 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc @@ -27,8 +27,8 @@ // invalidate any other reasons why the executable file might be covered by // the GNU General Public License. -// { dg-do compile { xfail { { *-*-linux* *-*-darwin* } || uclibc } } } -// { dg-excess-errors "" { target { { *-*-linux* *-*-darwin* } || uclibc } } } +// { dg-do compile { xfail { { *-*-linux* *-*-darwin* } || { uclibc || newlib } } } } +// { dg-excess-errors "" { target { { *-*-linux* *-*-darwin* } || { uclibc || newlib } } } } #include -- 2.30.2