mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Use pragmas rather than makefiles for necessary options for unwind code.
This commit is contained in:
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
|||||||
|
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>
|
2014-12-16 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
[BZ #17719]
|
[BZ #17719]
|
||||||
|
@ -146,9 +146,6 @@ libpthread-static-only-routines = pthread_atfork
|
|||||||
|
|
||||||
# nptl-init.c contains sigcancel_handler().
|
# nptl-init.c contains sigcancel_handler().
|
||||||
CFLAGS-nptl-init.c = -fexceptions -fasynchronous-unwind-tables
|
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.
|
# The following three functions must be async-cancel safe.
|
||||||
CFLAGS-pthread_cancel.c = -fexceptions -fasynchronous-unwind-tables
|
CFLAGS-pthread_cancel.c = -fexceptions -fasynchronous-unwind-tables
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
#include "pthreadP.h"
|
#include "pthreadP.h"
|
||||||
#include <jmpbuf-unwind.h>
|
#include <jmpbuf-unwind.h>
|
||||||
|
|
||||||
|
#pragma GCC optimize "-fexceptions"
|
||||||
|
|
||||||
#ifdef HAVE_FORCED_UNWIND
|
#ifdef HAVE_FORCED_UNWIND
|
||||||
|
|
||||||
#ifdef _STACK_GROWS_DOWN
|
#ifdef _STACK_GROWS_DOWN
|
||||||
|
@ -79,11 +79,9 @@ endif
|
|||||||
ifeq ($(subdir),csu)
|
ifeq ($(subdir),csu)
|
||||||
routines += unwind-resume
|
routines += unwind-resume
|
||||||
shared-only-routines += unwind-resume
|
shared-only-routines += unwind-resume
|
||||||
CFLAGS-unwind-resume.c += -fexceptions -fasynchronous-unwind-tables
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(subdir),rt)
|
ifeq ($(subdir),rt)
|
||||||
librt-sysdep_routines += rt-unwind-resume
|
librt-sysdep_routines += rt-unwind-resume
|
||||||
librt-shared-only-routines += rt-unwind-resume
|
librt-shared-only-routines += rt-unwind-resume
|
||||||
CFLAGS-rt-unwind-resume.c += -fexceptions -fasynchronous-unwind-tables
|
|
||||||
endif
|
endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
#include <unwind.h>
|
#include <unwind.h>
|
||||||
#include <gnu/lib-names.h>
|
#include <gnu/lib-names.h>
|
||||||
|
|
||||||
|
#pragma GCC optimize ("-fexceptions", "-fasynchronous-unwind-tables")
|
||||||
|
|
||||||
static void (*libgcc_s_resume) (struct _Unwind_Exception *exc)
|
static void (*libgcc_s_resume) (struct _Unwind_Exception *exc)
|
||||||
__attribute__ ((noreturn));
|
__attribute__ ((noreturn));
|
||||||
static _Unwind_Reason_Code (*libgcc_s_personality)
|
static _Unwind_Reason_Code (*libgcc_s_personality)
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
#include <sysdep.h>
|
#include <sysdep.h>
|
||||||
#include <gnu/lib-names.h>
|
#include <gnu/lib-names.h>
|
||||||
|
|
||||||
|
#pragma GCC optimize ("-fexceptions", "-fasynchronous-unwind-tables")
|
||||||
|
|
||||||
static void *libgcc_s_handle;
|
static void *libgcc_s_handle;
|
||||||
static void (*libgcc_s_resume) (struct _Unwind_Exception *exc);
|
static void (*libgcc_s_resume) (struct _Unwind_Exception *exc);
|
||||||
static _Unwind_Reason_Code (*libgcc_s_personality)
|
static _Unwind_Reason_Code (*libgcc_s_personality)
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
#include <unwind.h>
|
#include <unwind.h>
|
||||||
#include <pthreadP.h>
|
#include <pthreadP.h>
|
||||||
|
|
||||||
|
#pragma GCC optimize ("-fexceptions", "-fasynchronous-unwind-tables")
|
||||||
|
|
||||||
static void *libgcc_s_handle;
|
static void *libgcc_s_handle;
|
||||||
static void (*libgcc_s_resume) (struct _Unwind_Exception *exc)
|
static void (*libgcc_s_resume) (struct _Unwind_Exception *exc)
|
||||||
__attribute_used__;
|
__attribute_used__;
|
||||||
|
Reference in New Issue
Block a user