Commit 7a27dc2f by Richard Sandiford Committed by Richard Sandiford

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
parent 4c8a652e
2007-03-16 Richard Sandiford <richard@codesourcery.com> 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 * gcc.dg/20020426-2.c: Add the fpic requirement to the PIC
dg-options rather than to the whole test. dg-options rather than to the whole test.
...@@ -2077,15 +2077,12 @@ proc check_effective_target_uclibc {} { ...@@ -2077,15 +2077,12 @@ proc check_effective_target_uclibc {} {
# described by __$feature__ is not present. # described by __$feature__ is not present.
proc check_missing_uclibc_feature {feature} { proc check_missing_uclibc_feature {feature} {
if {[check_no_compiler_messages $feature object " return [check_no_compiler_messages $feature object "
#include <features.h> #include <features.h>
#if defined (__UCLIBC__) && !defined (__${feature}__) #if !defined (__UCLIBC) || !defined (__${feature}__)
#error FOO #error FOO
#endif #endif
"]} { "]
return 0
}
return 1
} }
# Return true if this is a Newlib target. # Return true if this is a Newlib target.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment