1 | --- /tmp/gcc-4.0.2/gcc/config/rs6000/host-darwin.c 2004-11-09 11:13:18.000000000 +0100 |
---|
2 | +++ Desktop/host-darwin.c 2007-11-07 21:34:55.000000000 +0100 |
---|
3 | @@ -35,7 +35,7 @@ |
---|
4 | |
---|
5 | /* This doesn't have a prototype in signal.h in 10.2.x and earlier, |
---|
6 | fixed in later releases. */ |
---|
7 | -extern int sigaltstack(const struct sigaltstack *, struct sigaltstack *); |
---|
8 | +/*extern int sigaltstack(const struct sigaltstack *, struct sigaltstack *);*/ |
---|
9 | |
---|
10 | #undef HOST_HOOKS_EXTRA_SIGNALS |
---|
11 | #define HOST_HOOKS_EXTRA_SIGNALS darwin_rs6000_extra_signals |
---|
12 | @@ -64,7 +64,7 @@ |
---|
13 | which case the next line will segfault _again_. Handle this case. */ |
---|
14 | signal (SIGSEGV, segv_crash_handler); |
---|
15 | |
---|
16 | - faulting_insn = *(unsigned *)uc->uc_mcontext->ss.srr0; |
---|
17 | + faulting_insn = *(unsigned *)uc->uc_mcontext->__ss.__srr0; |
---|
18 | |
---|
19 | /* Note that this only has to work for GCC, so we don't have to deal |
---|
20 | with all the possible cases (GCC has no AltiVec code, for |
---|
21 | @@ -113,7 +113,7 @@ |
---|
22 | } |
---|
23 | |
---|
24 | fprintf (stderr, "[address=%08lx pc=%08x]\n", |
---|
25 | - uc->uc_mcontext->es.dar, uc->uc_mcontext->ss.srr0); |
---|
26 | + uc->uc_mcontext->__es.__dar, uc->uc_mcontext->__ss.__srr0); |
---|
27 | internal_error ("Segmentation Fault"); |
---|
28 | exit (FATAL_EXIT_CODE); |
---|
29 | } |
---|