Commit 5f5bfdd0 by Geoffrey Keating Committed by Geoffrey Keating

host-darwin.c: ANSIfy, update comment for sigaltstack prototype.

	* config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
	prototype.

From-SVN: r69718
parent 6cf4d1bc
2003-07-23 Geoffrey Keating <geoffk@apple.com>
* config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
prototype.
2003-07-23 Mark Mitchell <mark@codesourcery.com> 2003-07-23 Mark Mitchell <mark@codesourcery.com>
PR optimization/10679 PR optimization/10679
......
...@@ -28,12 +28,13 @@ ...@@ -28,12 +28,13 @@
#include "toplev.h" #include "toplev.h"
#include "diagnostic.h" #include "diagnostic.h"
static void segv_crash_handler PARAMS ((int)); static void segv_crash_handler (int);
static void segv_handler PARAMS ((int, siginfo_t *, void *)); static void segv_handler (int, siginfo_t *, void *);
static void darwin_rs6000_extra_signals PARAMS ((void)); static void darwin_rs6000_extra_signals (void);
/* No prototype for this, filed as Radar 3150910. */ /* This doesn't have a prototype in signal.h in 10.2.x and earlier,
extern int sigaltstack(const stack_t *, stack_t *); fixed in later releases. */
extern int sigaltstack(const struct sigaltstack *, struct sigaltstack *);
#undef HOST_HOOKS_EXTRA_SIGNALS #undef HOST_HOOKS_EXTRA_SIGNALS
#define HOST_HOOKS_EXTRA_SIGNALS darwin_rs6000_extra_signals #define HOST_HOOKS_EXTRA_SIGNALS darwin_rs6000_extra_signals
...@@ -45,17 +46,15 @@ extern int sigaltstack(const stack_t *, stack_t *); ...@@ -45,17 +46,15 @@ extern int sigaltstack(const stack_t *, stack_t *);
the previous bottom of the stack. */ the previous bottom of the stack. */
static void static void
segv_crash_handler (sig) segv_crash_handler (int sig ATTRIBUTE_UNUSED)
int sig ATTRIBUTE_UNUSED;
{ {
internal_error ("Segmentation Fault (code)"); internal_error ("Segmentation Fault (code)");
} }
static void static void
segv_handler (sig, sip, scp) segv_handler (int sig ATTRIBUTE_UNUSED,
int sig ATTRIBUTE_UNUSED; siginfo_t *sip ATTRIBUTE_UNUSED,
siginfo_t *sip ATTRIBUTE_UNUSED; void *scp)
void *scp;
{ {
ucontext_t *uc = (ucontext_t *)scp; ucontext_t *uc = (ucontext_t *)scp;
unsigned faulting_insn; unsigned faulting_insn;
...@@ -119,7 +118,7 @@ segv_handler (sig, sip, scp) ...@@ -119,7 +118,7 @@ segv_handler (sig, sip, scp)
} }
static void static void
darwin_rs6000_extra_signals () darwin_rs6000_extra_signals (void)
{ {
struct sigaction sact; struct sigaction sact;
stack_t sigstk; stack_t sigstk;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment