]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Revert "Use pragmas rather than makefiles for necessary options for unwind code."
authorRoland McGrath <roland@hack.frob.com>
Tue, 16 Dec 2014 23:46:00 +0000 (15:46 -0800)
committerRoland McGrath <roland@hack.frob.com>
Tue, 16 Dec 2014 23:46:00 +0000 (15:46 -0800)
This reverts commit c324fcfe75c3976ae0b16943df00710e1d0d74f7.

ChangeLog
nptl/Makefile
nptl/unwind.c
sysdeps/gnu/Makefile
sysdeps/gnu/unwind-resume.c
sysdeps/nptl/unwind-forcedunwind.c
sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c

index aac7f32bbeabc9a47bc0542821fe2235a9a1df66..76a9849e7742691157abe25897fd846f7758e6d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,16 +1,3 @@
-2014-12-16  Roland McGrath  <roland@hack.frob.com>
-
-       * nptl/unwind.c: Use pragma to turn on -fexceptions.
-       * sysdeps/nptl/unwind-forcedunwind.c: Use pragma to turn on
-       -fexceptions and -fasynchronous-unwind-tables.
-       * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: Likewise.
-       * sysdeps/gnu/unwind-resume.c: Likewise.
-       * nptl/Makefile (CFLAGS-unwind.c, CFLAGS-unwind-forcedunwind.c):
-       Variables removed.
-       * sysdeps/gnu/Makefile
-       [$(subdir) = csu] (CFLAGS-unwind-resume.c): Likewise.
-       [$(subdir) = rt] (CFLAGS-rt-unwind-resume.c): Likewise.
-
 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #17719]
index 2b804b2ce4fcac84bb229196326ebe7c5d64665c..3d61ec1a3482e7a83d0032d1a652bc634f66347d 100644 (file)
@@ -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
index e50900e0019fe02c976bfde2ef98377dd840bb31..f109019b2e4ce78963215f31c6eef3ffa497a38a 100644 (file)
@@ -25,8 +25,6 @@
 #include "pthreadP.h"
 #include <jmpbuf-unwind.h>
 
-#pragma GCC optimize "-fexceptions"
-
 #ifdef HAVE_FORCED_UNWIND
 
 #ifdef _STACK_GROWS_DOWN
index 8d407f71e1c9d1cb1fa71b157db9061db967bef5..ba495ed236c59fa6658692de89592dcefbe85f43 100644 (file)
@@ -79,9 +79,11 @@ endif
 ifeq ($(subdir),csu)
 routines += unwind-resume
 shared-only-routines += unwind-resume
+CFLAGS-unwind-resume.c += -fexceptions -fasynchronous-unwind-tables
 endif
 
 ifeq ($(subdir),rt)
 librt-sysdep_routines += rt-unwind-resume
 librt-shared-only-routines += rt-unwind-resume
+CFLAGS-rt-unwind-resume.c += -fexceptions -fasynchronous-unwind-tables
 endif
index a23d19ae7fe57ad1b6f513b421b3d0eb4c2d7a5b..5044a7182e456cbe60b9b8320b1c4ceccaa93335 100644 (file)
@@ -21,8 +21,6 @@
 #include <unwind.h>
 #include <gnu/lib-names.h>
 
-#pragma GCC optimize ("-fexceptions", "-fasynchronous-unwind-tables")
-
 static void (*libgcc_s_resume) (struct _Unwind_Exception *exc)
   __attribute__ ((noreturn));
 static _Unwind_Reason_Code (*libgcc_s_personality)
index bbb366f1ae0f41df80ac0593b0d580d82daae681..9d7bdc5b90d015388da5ad1995dc15dec6358995 100644 (file)
@@ -23,8 +23,6 @@
 #include <sysdep.h>
 #include <gnu/lib-names.h>
 
-#pragma GCC optimize ("-fexceptions", "-fasynchronous-unwind-tables")
-
 static void *libgcc_s_handle;
 static void (*libgcc_s_resume) (struct _Unwind_Exception *exc);
 static _Unwind_Reason_Code (*libgcc_s_personality)
index 3f347a04b49da90512f1c82af41abc69fac3281d..660d1488e1d30e3c0321b395e8938c3fd5095cd3 100644 (file)
@@ -21,8 +21,6 @@
 #include <unwind.h>
 #include <pthreadP.h>
 
-#pragma GCC optimize ("-fexceptions", "-fasynchronous-unwind-tables")
-
 static void *libgcc_s_handle;
 static void (*libgcc_s_resume) (struct _Unwind_Exception *exc)
   __attribute_used__;