This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch 16/36][m68k] 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>
- Cc: schwab at linux-m68k dot org
- Date: Mon, 21 Sep 2009 15:46:57 -0700
- Subject: [patch 16/36][m68k] Hookize static chain and trampoline macros
- References: <4AB7F353.3060707@redhat.com>
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