On Thu, Jul 07, 2011 at 10:59:36AM +0200, Richard Guenther wrote:
> Hum.  Can't the compiler figure this our itself per-call-site?  At least
> the name of the command-line switch -m[no-]r11 is meaningless to me.
> Points-to information should be able to tell you if the function pointer
> points to a nested function.

Yeah.  E.g. for C++ virtual method calls I believe all function pointers in
vtables should always ignore the static chain pointer, etc., because you
can't have a nested method.

        Jakub

Reply via email to