On Thu, Mar 3, 2011 at 4:42 PM, Richard Guenther <richard.guent...@gmail.com> wrote: > On Thu, Mar 3, 2011 at 3:33 PM, Alan Modra <amo...@gmail.com> wrote: >> TREE_ADDRESSABLE comment says "In a FUNCTION_DECL, nonzero means its >> address is needed". However, as I point out in >> http://gcc.gnu.org/ml/gcc-patches/2011-02/msg01525.html, this flag >> gets set when making normal calls. It wasn't always like this. >> gcc-4.0 was careful to not set TREE_ADDRESSABLE on FUNCTION_DECLs in >> build_function_call, a feature lost in revision 100984. I'd like to >> have that feature back for the above patch. Bootstrapped and >> regression tested powerpc-linux. OK for 4.6? > > You'll get the addressable flag re-applied by the operand scanner.
The proper way to check "if its address is needed" is via cgraph predicates. Richard.