diff options
author | Richard Sandiford <richard@codesourcery.com> | 2007-02-09 13:51:23 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2007-02-09 13:51:23 +0000 |
commit | 2755c05623ee21f19a16c6d0af8d188629e26375 (patch) | |
tree | 0aa4348534aef6993b17c6e63757d5ef5ee58514 /gcc/testsuite/lib | |
parent | a6a05a5ec2109d6abf09d56d3bea7e3fab99870b (diff) | |
download | gcc-2755c05623ee21f19a16c6d0af8d188629e26375.tar.gz |
20030125-1.x: Return 1 for uClibc targets.
gcc/testsuite/
* gcc.c-torture/execute/20030125-1.x: Return 1 for uClibc targets.
* lib/target-supports.exp (check_effective_target_uclibc): New
function.
From-SVN: r121748
Diffstat (limited to 'gcc/testsuite/lib')
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 7c4d4b58aee..7027cb5a95f 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2034,6 +2034,17 @@ proc check_effective_target_coldfire_fpu { } { }] } +# Return true if this is a uClibc target. + +proc check_effective_target_uclibc {} { + return [check_no_compiler_messages uclibc object { + #include <features.h> + #if !defined (__UCLIBC__) + #error FOO + #endif + }] +} + # Return 1 if the target matches the effective target 'arg', 0 otherwise. # This can be used with any check_* proc that takes no argument and # returns only 1 or 0. It could be used with check_* procs that take |