This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch 36/36][i386] Hookize static chain and trampoline macros
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 22 Sep 2009 17:13:22 -0700
- Subject: Re: [patch 36/36][i386] Hookize static chain and trampoline macros
- References: <4AB7F353.3060707@redhat.com> <4AB80DBD.3090002@redhat.com>
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.