a1bfde
diff -up gc-7.6.4/pthread_start.c.dont_disable_exceptions gc-7.6.4/pthread_start.c
a1bfde
--- gc-7.6.4/pthread_start.c.dont_disable_exceptions	2018-01-26 07:16:17.000000000 -0600
a1bfde
+++ gc-7.6.4/pthread_start.c	2018-03-14 09:21:34.263477197 -0500
a1bfde
@@ -22,7 +22,7 @@
a1bfde
 /* case at the top of the file.  FIXME: it's still unclear whether this */
a1bfde
 /* will actually cause the exit handler to be invoked last when         */
a1bfde
 /* thread_exit is called (and if -fexceptions is used).                 */
a1bfde
-#if defined(__GNUC__) && defined(__linux__)
a1bfde
+#if 0 && defined(__GNUC__) && defined(__linux__)
a1bfde
   /* We undefine __EXCEPTIONS to avoid using GCC __cleanup__ attribute. */
a1bfde
   /* The current NPTL implementation of pthread_cleanup_push uses       */
a1bfde
   /* __cleanup__ attribute when __EXCEPTIONS is defined (-fexceptions). */