mirror of git://gcc.gnu.org/git/gcc.git
prims.cc (unblock_signal): Annotate signum with __unused__ to avoid warnings in the non-POSIX_VERSION case.
* prims.cc (unblock_signal): Annotate signum with __unused__ to avoid warnings in the non-POSIX_VERSION case. Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE, so place it inside an #if block. * include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__. * include/i386-signal.h (SIGNAL_HANDLER): Likewise * include/mips-signal.h (SIGNAL_HANDLER): Likewise * include/sparc-signal.h (SIGNAL_HANDLER): Likewise From-SVN: r88148
This commit is contained in:
parent
08bc8777ef
commit
c5fe8107bc
|
|
@ -1,3 +1,14 @@
|
||||||
|
2004-09-26 Per Bothner <per@bothner.com>
|
||||||
|
|
||||||
|
* prims.cc (unblock_signal): Annotate signum with __unused__ to
|
||||||
|
avoid warnings in the non-POSIX_VERSION case.
|
||||||
|
Also, we only need this function if either HANDLE_SEGV or HANDLE_FPE,
|
||||||
|
so place it inside an #if block.
|
||||||
|
* include/default-signal.h (SIGNAL_HANDLER): Parameters are __unused__.
|
||||||
|
* include/i386-signal.h (SIGNAL_HANDLER): Likewise
|
||||||
|
* include/mips-signal.h (SIGNAL_HANDLER): Likewise
|
||||||
|
* include/sparc-signal.h (SIGNAL_HANDLER): Likewise
|
||||||
|
|
||||||
2004-09-26 Per Bothner <per@bothner.com>
|
2004-09-26 Per Bothner <per@bothner.com>
|
||||||
|
|
||||||
* prims.cc (process_gcj_properties): Optimization.
|
* prims.cc (process_gcj_properties): Optimization.
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ details. */
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#define SIGNAL_HANDLER(_name) \
|
#define SIGNAL_HANDLER(_name) \
|
||||||
static void _name (int _dummy)
|
static void _name (int _dummy __attribute__ ((__unused__)))
|
||||||
|
|
||||||
#define INIT_SEGV \
|
#define INIT_SEGV \
|
||||||
do \
|
do \
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ details. */
|
||||||
#define HANDLE_FPE 1
|
#define HANDLE_FPE 1
|
||||||
|
|
||||||
#define SIGNAL_HANDLER(_name) \
|
#define SIGNAL_HANDLER(_name) \
|
||||||
static void _name (int _dummy)
|
static void _name (int _dummy __attribute__ ((__unused__)))
|
||||||
|
|
||||||
#define MAKE_THROW_FRAME(_exception) \
|
#define MAKE_THROW_FRAME(_exception) \
|
||||||
do \
|
do \
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,9 @@ struct kernel_sigaction {
|
||||||
|
|
||||||
|
|
||||||
#define SIGNAL_HANDLER(_name) \
|
#define SIGNAL_HANDLER(_name) \
|
||||||
static void _name (int _dummy, siginfo_t *_info, sig_ucontext_t *_arg)
|
static void _name (int _dummy __attribute__ ((__unused__)), \
|
||||||
|
siginfo_t *_info __attribute__ ((__unused__)), \
|
||||||
|
sig_ucontext_t *_arg __attribute__ ((__unused__)))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* MIPS leaves pc pointing at the faulting instruction, but the
|
* MIPS leaves pc pointing at the faulting instruction, but the
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,9 @@ details. */
|
||||||
#define HANDLE_FPE 1
|
#define HANDLE_FPE 1
|
||||||
|
|
||||||
#define SIGNAL_HANDLER(_name) \
|
#define SIGNAL_HANDLER(_name) \
|
||||||
static void _name (int _dummy, siginfo_t *_info, void *arg)
|
static void _name (int _dummy __attribute__ ((__unused__)), \
|
||||||
|
siginfo_t *_info __attribute__ ((__unused__)), \
|
||||||
|
void *arg __attribute__ ((__unused__)))
|
||||||
|
|
||||||
#ifdef __arch64__
|
#ifdef __arch64__
|
||||||
#define FLUSH_REGISTER_WINDOWS \
|
#define FLUSH_REGISTER_WINDOWS \
|
||||||
|
|
|
||||||
|
|
@ -125,10 +125,11 @@ void (*_Jv_JVMPI_Notify_THREAD_END) (JVMPI_Event *event);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined (HANDLE_SEGV) || defined(HANDLE_FPE)
|
||||||
/* Unblock a signal. Unless we do this, the signal may only be sent
|
/* Unblock a signal. Unless we do this, the signal may only be sent
|
||||||
once. */
|
once. */
|
||||||
static void
|
static void
|
||||||
unblock_signal (int signum)
|
unblock_signal (int signum __attribute__ ((__unused__)))
|
||||||
{
|
{
|
||||||
#ifdef _POSIX_VERSION
|
#ifdef _POSIX_VERSION
|
||||||
sigset_t sigs;
|
sigset_t sigs;
|
||||||
|
|
@ -138,6 +139,7 @@ unblock_signal (int signum)
|
||||||
sigprocmask (SIG_UNBLOCK, &sigs, NULL);
|
sigprocmask (SIG_UNBLOCK, &sigs, NULL);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HANDLE_SEGV
|
#ifdef HANDLE_SEGV
|
||||||
SIGNAL_HANDLER (catch_segv)
|
SIGNAL_HANDLER (catch_segv)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue