diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-23 19:11:28 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-23 19:11:28 +0000 |
commit | 19e03a46d8fed393daefe97ac154c0183727a337 (patch) | |
tree | eeef12f8e32e0e3a42dcd22e166360650261b2f7 /gcc/config/rs6000/host-darwin.c | |
parent | 9eb758917b0a79aa8cc8ce6083ea719763e5fbc2 (diff) | |
download | gcc-19e03a46d8fed393daefe97ac154c0183727a337.tar.gz |
* config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
prototype.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69718 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/host-darwin.c')
-rw-r--r-- | gcc/config/rs6000/host-darwin.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/gcc/config/rs6000/host-darwin.c b/gcc/config/rs6000/host-darwin.c index 294a6544910..7ef7c9aefdc 100644 --- a/gcc/config/rs6000/host-darwin.c +++ b/gcc/config/rs6000/host-darwin.c @@ -28,12 +28,13 @@ #include "toplev.h" #include "diagnostic.h" -static void segv_crash_handler PARAMS ((int)); -static void segv_handler PARAMS ((int, siginfo_t *, void *)); -static void darwin_rs6000_extra_signals PARAMS ((void)); +static void segv_crash_handler (int); +static void segv_handler (int, siginfo_t *, void *); +static void darwin_rs6000_extra_signals (void); -/* No prototype for this, filed as Radar 3150910. */ -extern int sigaltstack(const stack_t *, stack_t *); +/* This doesn't have a prototype in signal.h in 10.2.x and earlier, + fixed in later releases. */ +extern int sigaltstack(const struct sigaltstack *, struct sigaltstack *); #undef HOST_HOOKS_EXTRA_SIGNALS #define HOST_HOOKS_EXTRA_SIGNALS darwin_rs6000_extra_signals @@ -45,17 +46,15 @@ extern int sigaltstack(const stack_t *, stack_t *); the previous bottom of the stack. */ static void -segv_crash_handler (sig) - int sig ATTRIBUTE_UNUSED; +segv_crash_handler (int sig ATTRIBUTE_UNUSED) { internal_error ("Segmentation Fault (code)"); } static void -segv_handler (sig, sip, scp) - int sig ATTRIBUTE_UNUSED; - siginfo_t *sip ATTRIBUTE_UNUSED; - void *scp; +segv_handler (int sig ATTRIBUTE_UNUSED, + siginfo_t *sip ATTRIBUTE_UNUSED, + void *scp) { ucontext_t *uc = (ucontext_t *)scp; unsigned faulting_insn; @@ -119,7 +118,7 @@ segv_handler (sig, sip, scp) } static void -darwin_rs6000_extra_signals () +darwin_rs6000_extra_signals (void) { struct sigaction sact; stack_t sigstk; |