On May 2, 2012, at 2:07 PM, Chad Rosier <[email protected]> wrote:

> The attached patch allows inline assembly to inherit the readnone/readonly 
> function attribute from the caller.  This allows the attributes to be 
> retained after function inlining.  In turn, CSE is able to do it's magic on 
> inline assembly statements.
> 
> An orthogonal solution would be to add support for the const keyword for 
> inline assembly (e.g., asm const("mov $0x12345678, %0" : "=r" (ptr)); ).

I'm cool with this. Scares me, but I'm not against the idea :)

-eric
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to