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 16/36][m68k] Hookize static chain and trampoline macros


A tricky bit here is that m68k used static_chain_rtx in m68k_output_mi_thunk apparently for a scratch register. It suddenly occurs to me to wonder if it did that to avoid clobbering A0 when that's used for the structure return value? If so, my conversion is incorrect.

I've removed the separate trampoline implementation that was present in netbsd-elf.h. The comments say that it is "different" by using A1 as the static call chain. Of course, it's larger and slower as well, and the default implementation also handles STATIC_CHAIN_REGNUM being set to A1, so I can't see why this still exists.


r~

Attachment: d-tramp-16-m68k
Description: Text document


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