Maciej W. Rozycki <ma...@linux-mips.org> writes: > On Thu, 5 Feb 2015, Matthew Fortune wrote: > > > I'm OK with this change but I'd like Catherine to comment before > committing. > > It seems a shame to duplicate the block of code but it is probably just > as > > ugly to define a macro for the la/dla instruction. > > Native systems have <sys/asm.h> for such ABI dependencies, including > stuff to set up $gp. Perhaps we could reuse these bits, the licence I > think allows us to.
That's a good idea. Perhaps I should take that on as part of some cleanup of the MIPS backend in the next stage1. I'm looking to rework how the ISA_HAS logic works so perhaps there would be value in doing this mostly in a header that can also be used for assembly programmers. That would naturally mean we get all the other nice assembly macros available in the backend of GCC too. Thanks, Matthew