This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Small follow up to 6702
- From: Paolo Carlini <pcarlini at suse dot de>
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 01 May 2006 17:04:43 +0200
- Subject: [v3] Small follow up to 6702
Hi,
while extensively testing my fix for libstdc++/6702 in preparation for
backporting it to 4_1-branch, I noticed this glitch, where
--disable-wchar_t ended up disabling all the C99 facilities. If
everything goes well, I will go ahead with 4_1-branch in a couple of days.
Tested x86-linux (various configure options), committed to mainline.
Paolo.
////////////////
2006-05-01 Paolo Carlini <pcarlini@suse.de>
* acinclude.m4 (GLIBCXX_ENABLE_WCHAR_T): Always check the
presence of wctype.h, for use in GLIBCXX_ENABLE_C99.
* configure: Regenerate.
Index: acinclude.m4
===================================================================
--- acinclude.m4 (revision 113382)
+++ acinclude.m4 (working copy)
@@ -1789,12 +1789,15 @@
AC_DEFINE(HAVE_MBSTATE_T,1,[Define if mbstate_t exists in wchar.h.])
fi
+ # Test it always, for use in GLIBCXX_ENABLE_C99, together with
+ # ac_has_wchar_h.
+ AC_CHECK_HEADERS(wctype.h, ac_has_wctype_h=yes, ac_has_wctype_h=no)
+
if test x"$enable_wchar_t" = x"yes"; then
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
- AC_CHECK_HEADERS(wctype.h, ac_has_wctype_h=yes, ac_has_wctype_h=no)
if test x"$ac_has_wchar_h" = xyes &&
test x"$ac_has_wctype_h" = xyes; then
AC_TRY_COMPILE([#include <wchar.h>