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?

Not really.  Memory consumption would go through the roof.

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.


Diego.

Reply via email to