Re: GCC fubaring register
Re: GCC fubaring register
- Subject: Re: GCC fubaring register
- From: Andrew Pinski <email@hidden>
- Date: Mon, 12 Jun 2006 20:28:09 -0700
On Jun 12, 2006, at 1:32 PM, Ryan Govostes wrote:
I'm working with the following function, trimmed down to
demonstrate my problem
PPC Darwin's ABI does not have TOC and R2 is considered volatile
through function calls
just like r0.
What are you really trying to do?
Note:
asm("mr %0, r2\n\t" : "=r" (toc) : : "r2" );
is wrong as you are not clobbering r2 at all.
-- Pinski
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden