On Tue, Aug 18, 2009 at 11:32 AM, Ned Gill<thomas.g...@csr.com> wrote: > On Tue, 18 Aug 2009 10:14:37 +0100, Richard Guenther > <richard.guent...@gmail.com> wrote: > >> It sounds like a bug in points-to analysis where it doesn't correctly >> handle return values of pure/const functions. I would just >> add a constraint from anything to the lhs of the call to fix it. > > Thanks for the quick reply. Could you expand a little - should I be looking > at tree-ssa-alias.c or tree-ssa-pre.c? I'm not really familiar with this > part of the compiler. What do you mean by "constraint" in this context?
No, the fix would be to tree-ssa-structalias.c somewhere in handle_lhs_call (or find_func_aliases) - sorry, I don't have a 4.2 tree around. In the context you should see what a constraint is. Richard. > Thanks, > Ned. > > -- > > >