This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch 36/36][i386] Hookize static chain and trampoline macros
- From: Richard Henderson <rth at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 21 Sep 2009 16:35:25 -0700
- Subject: [patch 36/36][i386] Hookize static chain and trampoline macros
- References: <4AB7F353.3060707@redhat.com>
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.
r~
Attachment:
d-tramp-36-i386
Description: Text document