gcc/gcc47-libjava-prims-ctype.patch
Jakub Jelinek 5c29a25740 4.7.0-0.2
2012-01-03 15:17:22 +01:00

23 lines
769 B
Diff

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