mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-19 23:20:13 +08:00
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:
parent
4c8a652e3f
commit
7a27dc2fb4
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user