This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] gax ".code16gcc" fix
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Tim Cheng <chengyuqing at yahoo dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 16 Nov 2005 15:16:39 +1030
- Subject: Re: [PATCH] gax ".code16gcc" fix
- References: <20051111003546.42035.qmail@web81411.mail.mud.yahoo.com>
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