libstdc++ tests and targets without iconv

Joseph S. Myers joseph@codesourcery.com
Thu Jun 5 20:09:00 GMT 2008


Some libstdc++ tests such as 17_intro/headers/all.cc include 
<ext/codecvt_specializations.h> unconditionally along with all the other 
library headers.  This header includes <iconv.h> unconditionally.  This 
fails for targets without this header.  This leads to:

FAIL: 17_intro/headers/all.cc (test for excess errors)
FAIL: 17_intro/headers/all_c++200x_compatibility.cc (test for excess errors)
FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess errors)
FAIL: ext/headers.cc (test for excess errors)

Should these tests use dg-require-iconv or similar so they are disabled on 
such targets, should the tests only include 
<ext/codecvt_specializations.h> if _GLIBCXX_HAVE_ICONV, or should 
<ext/codecvt_specializations.h> condition out its contents unless 
_GLIBCXX_HAVE_ICONV?

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libstdc++ mailing list