Richard Guenther <richard.guent...@gmail.com> writes:
>
> Iff the inheritence is restricted to initializers like in the above example
> it should be straight-forward to implement in the frontends.

Great.

For best results would need some inheritance to callees too, if the
callees are not called by other non annotated code (that would probably only
work in whole-program mode, but that's fine)

> If it should handle general assignments in code-fragments it would
> be much harder (and a lot more fragile).  So - would restricting
> this to initializers be good enough?

Yes I think only handling it in initializers would be enough.

There are some exceptions where function pointers
are assigned directly, but they are relatively rare.

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

Reply via email to