diff options
author | davem <davem@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-29 04:12:02 +0000 |
---|---|---|
committer | davem <davem@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-29 04:12:02 +0000 |
commit | 6f0ae5446034ae364d9599e051a1f81ae9b61e1f (patch) | |
tree | 2419f3d97176523199b05a5e2eda7a148d75183f /gcc/config/sparc | |
parent | 55d4402dcc12ddd6b50d7e5d974e056a1ff3d7d3 (diff) | |
download | gcc-6f0ae5446034ae364d9599e051a1f81ae9b61e1f.tar.gz |
2002-04-27 David S. Miller <davem@redhat.com>
PR target/6494
* config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
of the stack bias.
* config/sparc/linux.h, config/sparc/linux64.h: Don't bother
including signal.h and sys/ucontext.h, not needed.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52872 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sparc')
-rw-r--r-- | gcc/config/sparc/linux.h | 5 | ||||
-rw-r--r-- | gcc/config/sparc/linux64.h | 8 |
2 files changed, 1 insertions, 12 deletions
diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h index 3e7e0611a93..ccf4ce0bb46 100644 --- a/gcc/config/sparc/linux.h +++ b/gcc/config/sparc/linux.h @@ -261,11 +261,6 @@ do { \ /* Do code reading to identify a signal frame, and set the frame state data appropriately. See unwind-dw2.c for the structs. */ -#ifdef IN_LIBGCC2 -#include <signal.h> -#include <sys/ucontext.h> -#endif - #define MD_FALLBACK_FRAME_STATE_FOR(CONTEXT, FS, SUCCESS) \ do { \ unsigned int *pc_ = (CONTEXT)->ra; \ diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h index 0ab61c2a7dc..c7950a8ff81 100644 --- a/gcc/config/sparc/linux64.h +++ b/gcc/config/sparc/linux64.h @@ -381,11 +381,6 @@ do { \ /* Do code reading to identify a signal frame, and set the frame state data appropriately. See unwind-dw2.c for the structs. */ -#ifdef IN_LIBGCC2 -#include <signal.h> -#include <sys/ucontext.h> -#endif - /* Handle multilib correctly. */ #if defined(__arch64__) /* 64-bit Sparc version */ @@ -403,14 +398,13 @@ do { \ fpu_save_off_ = regs_off_ + (16 * 8) + (3 * 8) + (2 * 4); \ this_cfa_ = (long) (CONTEXT)->cfa; \ new_cfa_ = *(long *)(((CONTEXT)->cfa) + (regs_off_ + (14 * 8))); \ + new_cfa_ += 2047; /* Stack bias */ \ fpu_save_ = *(long *)((this_cfa_) + (fpu_save_off_)); \ (FS)->cfa_how = CFA_REG_OFFSET; \ (FS)->cfa_reg = 14; \ (FS)->cfa_offset = new_cfa_ - (long) (CONTEXT)->cfa; \ for (i_ = 1; i_ < 16; ++i_) \ { \ - if (i_ == 14) \ - continue; \ (FS)->regs.reg[i_].how = REG_SAVED_OFFSET; \ (FS)->regs.reg[i_].loc.offset = \ this_cfa_ + (regs_off_ + (i_ * 8)) - new_cfa_; \ |