OSDN Git Service

gcc/testsuite/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Mar 2007 09:56:18 +0000 (09:56 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Mar 2007 09:56:18 +0000 (09:56 +0000)
* lib/target-supports.exp (check_missing_uclibc_feature): Don't
assume that the target has <features.h>.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122983 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 19db778..5050902 100644 (file)
@@ -1,5 +1,10 @@
 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
 
+       * lib/target-supports.exp (check_missing_uclibc_feature): Don't
+       assume that the target has <features.h>.
+
+2007-03-16  Richard Sandiford  <richard@codesourcery.com>
+
        * gcc.dg/20020426-2.c: Add the fpic requirement to the PIC
        dg-options rather than to the whole test.
 
index 113b8da..fec52ac 100644 (file)
@@ -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 <features.h>
-            #if defined (__UCLIBC__) && !defined (__${feature}__)
-            #error FOO
-            #endif
-        "]} {
-       return 0
-    }
-    return 1
+    return [check_no_compiler_messages $feature object "
+       #include <features.h>
+       #if !defined (__UCLIBC) || !defined (__${feature}__)
+       #error FOO
+       #endif
+    "]
 }
 
 # Return true if this is a Newlib target.