This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

Re: [PATCH] gax ".code16gcc" fix


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


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