diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 15 |
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. |