On Thu, Jul 7, 2011 at 11:03 AM, Jakub Jelinek <ja...@redhat.com> wrote:
> 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.

For this kind of FE specific info you could use a flag on the CALL_EXPR
as well.

Richard.

Reply via email to