This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch FYI: fix PR preprocessor/31932
- From: Tom Tromey <tromey at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 Mar 2009 14:54:00 -0600
- Subject: Patch FYI: fix PR preprocessor/31932
- Reply-to: tromey at redhat dot com
I'm checking this in.
This fixes PR preprocessor/31932, a build problem when using libiconv.
This fix has been around for nearly a year now :(.
I don't know whether Sergiy has an assignment, but this is a small
patch and it is really the only reasonable way to fix this problem.
Bootstrapped and regtested on x86-64 (compile farm). This is not
really a sufficient test, but I am confident that this is correct.
I'm not planning to backport this to any earlier branch.
Tom
2009-03-30 Sergiy Vyshnevetskiy <serg@vostok.net>
PR preprocessor/31932:
* internal.h: Don't mention HAVE_ICONV_H.
* configure, config.in: Rebuild.
* configure.ac: Don't check for iconv.h.
Index: internal.h
===================================================================
--- internal.h (revision 145299)
+++ internal.h (working copy)
@@ -26,10 +26,6 @@
#include "symtab.h"
#include "cpp-id-data.h"
-#ifndef HAVE_ICONV_H
-#undef HAVE_ICONV
-#endif
-
#if HAVE_ICONV
#include <iconv.h>
#else
Index: configure.ac
===================================================================
--- configure.ac (revision 145299)
+++ configure.ac (working copy)
@@ -37,7 +37,7 @@
# Checks for header files.
AC_HEADER_TIME
ACX_HEADER_STRING
-AC_CHECK_HEADERS(iconv.h locale.h fcntl.h limits.h stddef.h \
+AC_CHECK_HEADERS(locale.h fcntl.h limits.h stddef.h \
stdlib.h strings.h string.h sys/file.h unistd.h)
# Checks for typedefs, structures, and compiler characteristics.