aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2007-03-16 09:56:18 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-03-16 09:56:18 +0000
commit7a27dc2fb4995f8e2a27d762e8114c1bdac3e9ac (patch)
tree5950cdd61b5fd4eea50dcbd6a917797de19efcea /gcc
parent4c8a652e3f9bb666e2f85ee8db03f37c921233b5 (diff)
downloadgcc-7a27dc2fb4995f8e2a27d762e8114c1bdac3e9ac.zip
gcc-7a27dc2fb4995f8e2a27d762e8114c1bdac3e9ac.tar.gz
gcc-7a27dc2fb4995f8e2a27d762e8114c1bdac3e9ac.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/lib/target-supports.exp15
2 files changed, 11 insertions, 9 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 19db778..5050902 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 113b8da..fec52ac 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -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.