summaryrefslogtreecommitdiff
path: root/boehm-gc/os_dep.c
diff options
context:
space:
mode:
Diffstat (limited to 'boehm-gc/os_dep.c')
-rw-r--r--boehm-gc/os_dep.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/boehm-gc/os_dep.c b/boehm-gc/os_dep.c
index 30811055ab5..3f0f20e834c 100644
--- a/boehm-gc/os_dep.c
+++ b/boehm-gc/os_dep.c
@@ -3405,15 +3405,6 @@ extern kern_return_t exception_raise_state_identity(
#define MAX_EXCEPTION_PORTS 16
-#if defined (HAS_PPC_THREAD_STATE___R0) || \
- defined (HAS_PPC_THREAD_STATE64___R0) || \
- defined (HAS_X86_THREAD_STATE32___EAX) || \
- defined (HAS_X86_THREAD_STATE64___RAX)
-# define THREAD_FLD(x) __ ## x
-#else
-# define THREAD_FLD(x) x
-#endif
-
static struct {
mach_msg_type_number_t count;
exception_mask_t masks[MAX_EXCEPTION_PORTS];
@@ -3853,7 +3844,7 @@ catch_exception_raise(
/* This is the address that caused the fault */
#if defined(POWERPC)
- addr = (char*) exc_state.dar;
+ addr = (char*) exc_state. THREAD_FLD(dar);
#elif defined (I386) || defined (X86_64)
addr = (char*) exc_state. THREAD_FLD(faultvaddr);
#else