PPC code generation question
Alan Modra
amodra@bigpond.net.au
Mon Feb 25 10:34:00 GMT 2008
On Mon, Feb 25, 2008 at 07:51:52AM +0000, Jan Beulich wrote:
> Is it intentional, unavoidable, or a bug that this code
>
> .text
> _start:
> bge+ .
> bge- .-4
>
> generates different a binary different from this
>
> .text
> _start:
> bge+ .
> bge- .-4
> .machine power6
>
> While I suppose that the difference is not very significant, it still seems
> odd.
I'd say it is a bug. Fixup processing accesses ppc_cpu (*), so gets
the value at the end of the file. We probably ought to save the
current value of ppc_cpu in the fixup and use that.
*) md_apply_fix calls ppc_insert_operand which uses ppc_cpu.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list