From 7a27dc2fb4995f8e2a27d762e8114c1bdac3e9ac Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Fri, 16 Mar 2007 09:56:18 +0000 Subject: [PATCH] target-supports.exp (check_missing_uclibc_feature): Don't assume that the target has . gcc/testsuite/ * lib/target-supports.exp (check_missing_uclibc_feature): Don't assume that the target has . From-SVN: r122983 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/target-supports.exp | 15 ++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 19db7789114..505090251d7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-03-16 Richard Sandiford + + * lib/target-supports.exp (check_missing_uclibc_feature): Don't + assume that the target has . + 2007-03-16 Richard Sandiford * gcc.dg/20020426-2.c: Add the fpic requirement to the PIC diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 113b8da00cd..fec52ac0a89 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2077,15 +2077,12 @@ proc check_effective_target_uclibc {} { # described by __$feature__ is not present. proc check_missing_uclibc_feature {feature} { - if {[check_no_compiler_messages $feature object " - #include - #if defined (__UCLIBC__) && !defined (__${feature}__) - #error FOO - #endif - "]} { - return 0 - } - return 1 + return [check_no_compiler_messages $feature object " + #include + #if !defined (__UCLIBC) || !defined (__${feature}__) + #error FOO + #endif + "] } # Return true if this is a Newlib target. -- 2.30.2