x86_64-signal.h (MAKE_THROW_FRAME): Mark sigcontext on stack volatile to prevent optimization from removing it.
2003-06-03 Andrew Haley <aph@redhat.com> * include/x86_64-signal.h (MAKE_THROW_FRAME): Mark sigcontext on stack volatile to prevent optimization from removing it. From-SVN: r67379
This commit is contained in:
parent
b09d2739b0
commit
9f47031337
|
@ -1,3 +1,8 @@
|
||||||
|
2003-06-03 Andrew Haley <aph@redhat.com>
|
||||||
|
|
||||||
|
* include/x86_64-signal.h (MAKE_THROW_FRAME): Mark sigcontext on
|
||||||
|
stack volatile to prevent optimization from removing it.
|
||||||
|
|
||||||
2003-05-27 Michael Koch <konqueror@gmx.de>
|
2003-05-27 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
* java/util/zip/Deflater.java
|
* java/util/zip/Deflater.java
|
||||||
|
|
|
@ -21,7 +21,7 @@ details. */
|
||||||
#define HANDLE_SEGV 1
|
#define HANDLE_SEGV 1
|
||||||
|
|
||||||
#define SIGNAL_HANDLER(_name) \
|
#define SIGNAL_HANDLER(_name) \
|
||||||
static void _Jv_##_name (int, siginfo_t *_sip, void *_p)
|
static void _Jv_##_name (int, siginfo_t *, void *_p)
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
|
@ -34,16 +34,16 @@ extern "C"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MAKE_THROW_FRAME(_exception) \
|
#define MAKE_THROW_FRAME(_exception) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
/* Advance the program counter so that it is after the start of the \
|
/* Advance the program counter so that it is after the start of the \
|
||||||
instruction: the x86_64 exception handler expects \
|
instruction: the x86_64 exception handler expects \
|
||||||
the PC to point to the instruction after a call. */ \
|
the PC to point to the instruction after a call. */ \
|
||||||
struct ucontext *_uc = (struct ucontext *)_p; \
|
struct ucontext *_uc = (struct ucontext *)_p; \
|
||||||
struct sigcontext *_sc = (struct sigcontext *) &_uc->uc_mcontext; \
|
volatile struct sigcontext *_sc = (struct sigcontext *) &_uc->uc_mcontext; \
|
||||||
_sc->rip += 2; \
|
_sc->rip += 2; \
|
||||||
} \
|
} \
|
||||||
while (0)
|
while (0)
|
||||||
|
|
||||||
#define RESTORE(name, syscall) RESTORE2 (name, syscall)
|
#define RESTORE(name, syscall) RESTORE2 (name, syscall)
|
||||||
|
|
Loading…
Reference in New Issue