On 1/29/07, Razya Ladelsky <[EMAIL PROTECTED]> wrote:
Razya Ladelsky/Haifa/IBM wrote on 29/01/2007 13:46:33:
> Hi,
>
> Does gcc apply inter-procedural optimizations across functions called
using
> a function pointer? I guess that gcc performs conservatively assuming
that
> the pointer could point everywhere because the pointer is a declared as
a
> global variable and could be changed in any place. Is it true?
Yes.
The callgraph does not include these calls.
Well, not quite.
While the callgraph doesn't include them, ipa-pta will come up with a
conservatively correct set for them.
IN the presence of static function pointers, we will come up with a
completely accurate set for them unless they escape