This is the mail archive of the binutils@sources.redhat.com 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: m68k reloc types


Richard Henderson <rth@redhat.com> writes:

> On Tue, Aug 17, 2004 at 10:54:05PM +0200, Andreas Schwab wrote:
>> Well, there is a trade between using a addressing mode that wastes 4 bytes
>> for every use and spilling a register here and there.
>
> Hmm.  Well, perhaps what you want is
>
> 	(set (reg:SI tmp) (symbol_ref:SI "x"))
> 	(set (mem:SI (reg:SI tmp)) ...)

Actually it would be nice to be able to expose the full details of PIC
addressing in rtl, so that you can decide case by case whether to use
PC-relative or GOT relative.  One nice thing about the PIC implementation
on the m68k is that you can actually chose the PIC register freely, you
don't have to use a fixed or even a call-saved register.  So for example
in a leaf function you could just use a scratch register for it.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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