[PATCH] gax ".code16gcc" fix

Alan Modra amodra@bigpond.net.au
Wed Nov 16 04:46:00 GMT 2005


On Thu, Nov 10, 2005 at 04:35:46PM -0800, Tim Cheng wrote:
> The following patched fixed ".code16gcc" directive in gas, where it
> doesn't generate 0x66 prefixes for jmp instructions.

I'm not applying this patch because you don't want prefixes on most jump
instructions.  You really only want them on jumps that implement tail
calls to other functions, but I don't see any way for the assembler to
easily distinguish between the two cases.  Instead of this patch, which
needlessly increases code size, I suggest you use gcc's
-fno-optimize-sibling-calls.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list