gc/gc-7.6.4-dont_disable_exceptions.patch
Petr Šabata bbe6cfeccb RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/gc#f9d728c21a87f0d029b4d5e358d7b058119a900c
2020-10-15 00:43:19 +02:00

13 lines
806 B
Diff

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