target-supports.exp (check_missing_uclibc_feature): Don't assume that the target has <features.h>.

gcc/testsuite/
	* lib/target-supports.exp (check_missing_uclibc_feature): Don't
	assume that the target has <features.h>.

From-SVN: r122983
This commit is contained in:
Richard Sandiford 2007-03-16 09:56:18 +00:00 committed by Richard Sandiford
parent 4c8a652e3f
commit 7a27dc2fb4
2 changed files with 11 additions and 9 deletions

View File

@ -1,3 +1,8 @@
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

View 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.