diff options
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/Makefile | 3 | ||||
-rw-r--r-- | nptl/unwind.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/nptl/Makefile b/nptl/Makefile index 2b804b2ce4..3d61ec1a34 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -146,6 +146,9 @@ libpthread-static-only-routines = pthread_atfork # nptl-init.c contains sigcancel_handler(). CFLAGS-nptl-init.c = -fexceptions -fasynchronous-unwind-tables +# The unwind code itself, +CFLAGS-unwind.c = -fexceptions +CFLAGS-unwind-forcedunwind.c = -fexceptions -fasynchronous-unwind-tables # The following three functions must be async-cancel safe. CFLAGS-pthread_cancel.c = -fexceptions -fasynchronous-unwind-tables diff --git a/nptl/unwind.c b/nptl/unwind.c index e50900e001..f109019b2e 100644 --- a/nptl/unwind.c +++ b/nptl/unwind.c @@ -25,8 +25,6 @@ #include "pthreadP.h" #include <jmpbuf-unwind.h> -#pragma GCC optimize "-fexceptions" - #ifdef HAVE_FORCED_UNWIND #ifdef _STACK_GROWS_DOWN |