From f0481d971e9941004814009c1b0877a43aa10bdb Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 16 Dec 2014 15:46:00 -0800 Subject: Revert "Use pragmas rather than makefiles for necessary options for unwind code." This reverts commit c324fcfe75c3976ae0b16943df00710e1d0d74f7. --- sysdeps/gnu/Makefile | 2 ++ sysdeps/gnu/unwind-resume.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/gnu') diff --git a/sysdeps/gnu/Makefile b/sysdeps/gnu/Makefile index 8d407f7..ba495ed 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 a23d19a..5044a71 100644 --- a/sysdeps/gnu/unwind-resume.c +++ b/sysdeps/gnu/unwind-resume.c @@ -21,8 +21,6 @@ #include #include -#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) -- cgit v1.1