diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-03-23 16:45:45 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-03-23 16:45:45 +0000 |
commit | 0b3deaafebd053f8bc5f52c38d64909068f27d03 (patch) | |
tree | b99d5b20a5e77f6a8312c03317a424ec844ed67b /gcc | |
parent | 17ac08e2fb86675af83171afbeccfe7936c48709 (diff) | |
download | gcc-0b3deaafebd053f8bc5f52c38d64909068f27d03.zip gcc-0b3deaafebd053f8bc5f52c38d64909068f27d03.tar.gz gcc-0b3deaafebd053f8bc5f52c38d64909068f27d03.tar.bz2 |
target-supports.exp (check_iconv_available): Default libiconv to -liconv, if there is no definition.
* lib/target-supports.exp (check_iconv_available): Default
libiconv to -liconv, if there is no definition.
* testsuite/lib/libstdc++.exp (libstdc++_init): Improve handling
of compilers not in the build directory.
(libstdc++_wchar_t): New variable.
(libstdc++_threads): Likewise.
(libstdc++_test_objs): Likewise.
(v3_target_compile): Use libstdc++_test_objs.
(v3-list-tests): Remove.
(listdc++_build_support): New function.
* testsuite/libstdc++-dg/normal.exp: Rework to dynamically
generate list of tests.
From-SVN: r96934
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 22ddaa5..d39269f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-03-23 Mark Mitchell <mark@codesourcery.com> + + * lib/target-supports.exp (check_iconv_available): Default + libiconv to -liconv, if there is no definition. + 2005-03-23 Hans-Peter Nilsson <hp@axis.com> * gcc.dg/torture/cris-asm-mof-1.c: New test. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 2acef12..d37fd2d 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -303,6 +303,10 @@ proc check_iconv_available { test_what } { puts $f "return 0;\n}" close $f + # If the tool configuration file has not set libiconv, try "-liconv" + if { ![info exists libiconv] } { + set libiconv "-liconv" + } set lines [${tool}_target_compile $src $exe executable "libs=$libiconv" ] file delete $src |