This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch FYI: fix PR preprocessor/31932


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]