diff options
author | midipix <writeonce@midipix.org> | 2019-03-11 03:57:44 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-03-12 02:53:38 -0400 |
commit | 2a900682b99e546e611f388ddddd543184511ea7 (patch) | |
tree | 6b78704a547e128ae28bf5b1ca55e943c84d144c | |
parent | 933115aab248ec7e87fc259e914d949eba4a2be3 (diff) | |
download | cbb-gcc-4.6.4-2a900682b99e546e611f388ddddd543184511ea7.tar.bz2 cbb-gcc-4.6.4-2a900682b99e546e611f388ddddd543184511ea7.tar.xz |
unwind-c.c: added proper support for target-provided exception filters.
-rw-r--r-- | gcc/unwind-c.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/unwind-c.c b/gcc/unwind-c.c index 86b9f5570..ea5675bad 100644 --- a/gcc/unwind-c.c +++ b/gcc/unwind-c.c @@ -93,6 +93,8 @@ parse_lsda_header (struct _Unwind_Context *context, const unsigned char *p, #ifdef __USING_SJLJ_EXCEPTIONS__ #define PERSONALITY_FUNCTION __gcc_personality_sj0 #define __builtin_eh_return_data_regno(x) x +#elif defined(TARGET_PERSONALITY_FUNCTION) +#define PERSONALITY_FUNCTION __gcc_personality_imp #else #define PERSONALITY_FUNCTION __gcc_personality_v0 #endif @@ -107,6 +109,10 @@ PERSONALITY_FUNCTION (_Unwind_State state, struct _Unwind_Exception * ue_header, struct _Unwind_Context * context) #else + +#ifdef TARGET_PERSONALITY_FUNCTION +static +#endif _Unwind_Reason_Code PERSONALITY_FUNCTION (int, _Unwind_Action, _Unwind_Exception_Class, struct _Unwind_Exception *, struct _Unwind_Context *); |