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]

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


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


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