On 10/05/2012 04:20 PM, Xinliang David Li wrote:
So init () will be unconditionally called on entry to the wrapper?
In that case, you should probably go to the other extreme -- mark the
wrapper as noinline and expanded as if they are builtins -- but run
into the tricky issues of 'attributes' as discussed here.
I think we can leave the wrapper as a normal inline and use the same
attribute on the init function; it also has the property of only having
side-effects on the first call, it just doesn't return anything.
Jason