7750bc9
2011-10-27  Jakub Jelinek  <jakub@redhat.com>
7750bc9
7750bc9
	* prims.cc (__NO_CTYPE): For glibc define this before including
7750bc9
	ctype.h.
7750bc9
7750bc9
--- libjava/prims.cc	2009-04-28 06:02:30.000000000 +0200
7750bc9
+++ libjava/prims.cc	2011-10-27 12:57:42.748752380 +0200
7750bc9
@@ -38,6 +38,14 @@ details.  */
7750bc9
 #endif
7750bc9
 
7750bc9
 #ifndef DISABLE_GETENV_PROPERTIES
7750bc9
+#ifdef __GLIBC__
7750bc9
+/* glibc 2.15+ provides even for C++ inline optimized ::isspace etc.
7750bc9
+   Unfortunately those inlines are throw (), and call a function pointer
7750bc9
+   (which is throw () too, but with -fnon-call-exceptions this results
7750bc9
+   in a __cxa_call_unexpected call.  This macro disables the optimized
7750bc9
+   version.  */
7750bc9
+#define __NO_CTYPE 1
7750bc9
+#endif
7750bc9
 #include <ctype.h>
7750bc9
 #include <java-props.h>
7750bc9
 #define PROCESS_GCJ_PROPERTIES process_gcj_properties()