Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 9720 Details for
Bug 18034
modifed gcc ebuild that can build native or cross tool chains
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
allows the 1st stage gcc to be built for x86
gcc-3.2.2-cross-x86.diff (text/plain), 2.54 KB, created by
James Boddington (RETIRED)
on 2003-03-23 05:00:38 UTC
(
hide
)
Description:
allows the 1st stage gcc to be built for x86
Filename:
MIME Type:
Creator:
James Boddington (RETIRED)
Created:
2003-03-23 05:00:38 UTC
Size:
2.54 KB
patch
obsolete
>--- gcc/config/i386/linux.h-orig 2003-03-10 01:35:15.000000000 +0000 >+++ gcc/config/i386/linux.h 2003-03-10 01:35:59.000000000 +0000 >@@ -221,60 +221,4 @@ > 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 char *pc_ = (CONTEXT)->ra; \ >- struct sigcontext *sc_; \ >- long new_cfa_; \ >- \ >- /* popl %eax ; movl $__NR_sigreturn,%eax ; int $0x80 */ \ >- if (*(unsigned short *)(pc_+0) == 0xb858 \ >- && *(unsigned int *)(pc_+2) == 119 \ >- && *(unsigned short *)(pc_+6) == 0x80cd) \ >- sc_ = (CONTEXT)->cfa + 4; \ >- /* movl $__NR_rt_sigreturn,%eax ; int $0x80 */ \ >- else if (*(unsigned char *)(pc_+0) == 0xb8 \ >- && *(unsigned int *)(pc_+1) == 173 \ >- && *(unsigned short *)(pc_+5) == 0x80cd) \ >- { \ >- struct rt_sigframe { \ >- int sig; \ >- struct siginfo *pinfo; \ >- void *puc; \ >- struct siginfo info; \ >- struct ucontext uc; \ >- } *rt_ = (CONTEXT)->cfa; \ >- sc_ = (struct sigcontext *) &rt_->uc.uc_mcontext; \ >- } \ >- else \ >- break; \ >- \ >- new_cfa_ = sc_->esp; \ >- (FS)->cfa_how = CFA_REG_OFFSET; \ >- (FS)->cfa_reg = 4; \ >- (FS)->cfa_offset = new_cfa_ - (long) (CONTEXT)->cfa; \ >- \ >- /* The SVR4 register numbering macros aren't usable in libgcc. */ \ >- (FS)->regs.reg[0].how = REG_SAVED_OFFSET; \ >- (FS)->regs.reg[0].loc.offset = (long)&sc_->eax - new_cfa_; \ >- (FS)->regs.reg[3].how = REG_SAVED_OFFSET; \ >- (FS)->regs.reg[3].loc.offset = (long)&sc_->ebx - new_cfa_; \ >- (FS)->regs.reg[1].how = REG_SAVED_OFFSET; \ >- (FS)->regs.reg[1].loc.offset = (long)&sc_->ecx - new_cfa_; \ >- (FS)->regs.reg[2].how = REG_SAVED_OFFSET; \ >- (FS)->regs.reg[2].loc.offset = (long)&sc_->edx - new_cfa_; \ >- (FS)->regs.reg[6].how = REG_SAVED_OFFSET; \ >- (FS)->regs.reg[6].loc.offset = (long)&sc_->esi - new_cfa_; \ >- (FS)->regs.reg[7].how = REG_SAVED_OFFSET; \ >- (FS)->regs.reg[7].loc.offset = (long)&sc_->edi - new_cfa_; \ >- (FS)->regs.reg[5].how = REG_SAVED_OFFSET; \ >- (FS)->regs.reg[5].loc.offset = (long)&sc_->ebp - new_cfa_; \ >- (FS)->regs.reg[8].how = REG_SAVED_OFFSET; \ >- (FS)->regs.reg[8].loc.offset = (long)&sc_->eip - new_cfa_; \ >- (FS)->retaddr_column = 8; \ >- goto SUCCESS; \ >- } while (0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18034
:
9717
|
9718
|
9719
| 9720 |
10248