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


A straight-forward conversion to hooks.

Your trampoline can be greatly simplified for N32 and N64 abis. Recall that the current address is passed in via $25. Which simplifies your trampoline to e.g.

	lw	$1,20($25)
	lw	$25,16($25)
	jr	$25
	 nop

And why emit raw integers to the template? It just makes things a bit confusing in my opinion. Integers are of course acceptable if you're not going to use a template...


r~

Attachment: d-tramp-19-mips
Description: Text document


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