* 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
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.
# 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.