Re: original tree for folded expressions

2011-09-16 Thread Diego Novillo
On 11-09-16 16:25 , Joachim Wieland wrote: Hm, I don't see how exactly this would solve my problem... The issue I am facing is that references to necessary header files are optimized away. Just knowing that an expression has been folded doesn't help me... :-( Sorry, I was too cryptic. The set

Re: original tree for folded expressions

2011-09-16 Thread Joachim Wieland
On Fri, Sep 16, 2011 at 1:37 PM, Diego Novillo wrote: > However, you could try an approach similar to what Le-Chun implemented for > -Wself-assign (which only exists in the google/main branch for now).  See > EXPR_FOLDED in http://gcc.gnu.org/ml/gcc-patches/2011-04/msg01898.html. Hm, I don't see

Re: original tree for folded expressions

2011-09-16 Thread Diego Novillo
On 11-09-16 12:05 , Joachim Wieland wrote: I am looking at the AST from a plugin and a tree walking function called from PLUGIN_PRE_GENERICIZE. Is there an earlier phase that I could hook into? If not, would it be acceptable to add the original tree to a folded tree for analyzing tools like mine