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: [patch] MIPS gas problems with gcc's explicit relocs


Eric Christopher <echristo@redhat.com> writes:

>> - Work around the problem by not using "m" constraints for (d)la in
>>   the inline assembler, that is instead of
>> 
>> 	asm("dla\t%0,%1" : "=r" (result) : "m" (foo));
>> 
>>   something like
>> 
>> 	asm("dla\t%0,foo" : "=r" (result));
>
> I like this I think the most. It fits with what people are trying to do
> with the la instruction, i.e. load an address for a symbol that they
> know.

For "load address" and "push address" type insns there is the "p"
constraint letter.  Wouldn't that be the correct constraint here?

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]