Functions that are CSEable but not pure

Jason Merrill jason@redhat.com
Fri Oct 5 20:12:00 GMT 2012


On 10/05/2012 03:46 PM, Xinliang David Li wrote:
> 1) As mentioned in this thread -- when the wrapper is inlined, the
> pure attribute will be lost. It will give compiler hard time to
> optimize away the guard code

The wrapper doesn't actually check the guard; that happens in the init 
function, which is not inline.

Jason



More information about the Gcc mailing list