asm in inline function invalidating function attributes?

Andi Kleen andi@firstfloor.org
Mon Oct 17 16:28:00 GMT 2011


> > At least the Linux kernel has a couple such cases ("nasty inline asm to
> > hide register clobbering in calls") and it's always ugly and hard to
> > maintain.
> 
> It would simply be an alternate ABI that makes all registers callee-saved?

Yes exactly that.

-Andi
-- 
ak@linux.intel.com -- Speaking for myself only.



More information about the Gcc mailing list