This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch 36/36][i386] Hookize static chain and trampoline macros


On Mon, Sep 21, 2009 at 4:35 PM, Richard Henderson <rth@redhat.com> wrote:
> Finally, the reason for this entire patch series, and the fix for PR41240.
>
> In addition to hook-izing the i386 backend, I also fill in the
> TARGET_STATIC_CHAIN hook with a function that examines what register, if
> any, the calling convention specified for this function leaves available.
> ?For fastcall, we use EAX. ?For regparm=3, we arrange for the trampoline to
> push the static chain onto the stack. ?This requires a few adjustments to
> the prologue and epilogue code to manipulate the stack offsets
> appropriately.
>

This breaks Linux/ia32:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41436

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]