summaryrefslogtreecommitdiff
path: root/sysdeps/gnu
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-12-16 15:46:00 -0800
committerRoland McGrath <roland@hack.frob.com>2014-12-16 15:46:00 -0800
commitf0481d971e9941004814009c1b0877a43aa10bdb (patch)
tree8fb260047cae35d5301e848906d1c145d5a736ad /sysdeps/gnu
parentc324fcfe75c3976ae0b16943df00710e1d0d74f7 (diff)
downloadglibc-f0481d971e9941004814009c1b0877a43aa10bdb.tar.gz
Revert "Use pragmas rather than makefiles for necessary options for unwind code."
This reverts commit c324fcfe75c3976ae0b16943df00710e1d0d74f7.
Diffstat (limited to 'sysdeps/gnu')
-rw-r--r--sysdeps/gnu/Makefile2
-rw-r--r--sysdeps/gnu/unwind-resume.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/gnu/Makefile b/sysdeps/gnu/Makefile
index 8d407f71e1..ba495ed236 100644
--- a/sysdeps/gnu/Makefile
+++ b/sysdeps/gnu/Makefile
@@ -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
diff --git a/sysdeps/gnu/unwind-resume.c b/sysdeps/gnu/unwind-resume.c
index a23d19ae7f..5044a7182e 100644
--- a/sysdeps/gnu/unwind-resume.c
+++ b/sysdeps/gnu/unwind-resume.c
@@ -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)