Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 9718 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 build for ppc
gcc-3.2-crossppc.diff (text/plain), 2.88 KB, created by
James Boddington (RETIRED)
on 2003-03-23 04:57:48 UTC
(
hide
)
Description:
allows the 1st stage gcc to be build for ppc
Filename:
MIME Type:
Creator:
James Boddington (RETIRED)
Created:
2003-03-23 04:57:48 UTC
Size:
2.88 KB
patch
obsolete
>--- gcc/config/rs6000/linux.h.orig 2003-03-08 15:21:31.000000000 +0000 >+++ gcc/config/rs6000/linux.h 2003-03-08 15:21:53.000000000 +0000 >@@ -78,77 +78,7 @@ > state data appropriately. See unwind-dw2.c for the structs. */ > > #ifdef IN_LIBGCC2 >-#include <signal.h> >-#include <sys/ucontext.h> > > enum { SIGNAL_FRAMESIZE = 64 }; > #endif > >-#define MD_FALLBACK_FRAME_STATE_FOR(CONTEXT, FS, SUCCESS) \ >- do { \ >- unsigned char *pc_ = (CONTEXT)->ra; \ >- struct sigcontext *sc_; \ >- long new_cfa_; \ >- int i_; \ >- \ >- /* li r0, 0x7777; sc (sigreturn old) */ \ >- /* li r0, 0x0077; sc (sigreturn new) */ \ >- /* li r0, 0x6666; sc (rt_sigreturn old) */ \ >- /* li r0, 0x00AC; sc (rt_sigreturn new) */ \ >- if (*(unsigned int *) (pc_+4) != 0x44000002) \ >- break; \ >- if (*(unsigned int *) (pc_+0) == 0x38007777 \ >- || *(unsigned int *) (pc_+0) == 0x38000077) \ >- { \ >- struct sigframe { \ >- char gap[SIGNAL_FRAMESIZE]; \ >- struct sigcontext sigctx; \ >- } *rt_ = (CONTEXT)->cfa; \ >- sc_ = &rt_->sigctx; \ >- } \ >- else if (*(unsigned int *) (pc_+0) == 0x38006666 \ >- || *(unsigned int *) (pc_+0) == 0x380000AC) \ >- { \ >- struct rt_sigframe { \ >- char gap[SIGNAL_FRAMESIZE]; \ >- unsigned long _unused[2]; \ >- struct siginfo *pinfo; \ >- void *puc; \ >- struct siginfo info; \ >- struct ucontext uc; \ >- } *rt_ = (CONTEXT)->cfa; \ >- sc_ = &rt_->uc.uc_mcontext; \ >- } \ >- else \ >- break; \ >- \ >- new_cfa_ = sc_->regs->gpr[STACK_POINTER_REGNUM]; \ >- (FS)->cfa_how = CFA_REG_OFFSET; \ >- (FS)->cfa_reg = STACK_POINTER_REGNUM; \ >- (FS)->cfa_offset = new_cfa_ - (long) (CONTEXT)->cfa; \ >- \ >- for (i_ = 0; i_ < 32; i_++) \ >- if (i_ != STACK_POINTER_REGNUM) \ >- { \ >- (FS)->regs.reg[i_].how = REG_SAVED_OFFSET; \ >- (FS)->regs.reg[i_].loc.offset \ >- = (long)&(sc_->regs->gpr[i_]) - new_cfa_; \ >- } \ >- \ >- (FS)->regs.reg[LINK_REGISTER_REGNUM].how = REG_SAVED_OFFSET; \ >- (FS)->regs.reg[LINK_REGISTER_REGNUM].loc.offset \ >- = (long)&(sc_->regs->link) - new_cfa_; \ >- \ >- /* The unwinder expects the IP to point to the following insn, \ >- whereas the kernel returns the address of the actual \ >- faulting insn. We store NIP+4 in an unused register slot to \ >- get the same result for multiple evaluation of the same signal \ >- frame. */ \ >- sc_->regs->gpr[47] = sc_->regs->nip + 4; \ >- (FS)->regs.reg[CR0_REGNO].how = REG_SAVED_OFFSET; \ >- (FS)->regs.reg[CR0_REGNO].loc.offset \ >- = (long)&(sc_->regs->gpr[47]) - new_cfa_; \ >- (FS)->retaddr_column = CR0_REGNO; \ >- 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