summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-03-11 03:57:44 -0400
committermidipix <writeonce@midipix.org>2019-03-12 02:53:38 -0400
commit2a900682b99e546e611f388ddddd543184511ea7 (patch)
tree6b78704a547e128ae28bf5b1ca55e943c84d144c
parent933115aab248ec7e87fc259e914d949eba4a2be3 (diff)
downloadcbb-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.c6
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 *);