Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC fubaring register




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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden


This email sent to email@hidden
References: 
 >GCC fubaring register (From: Ryan Govostes <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.