On 10/23/2015 02:41 PM, David Malcolm wrote:
This patch adds a test plugin that recurses down an expression tree,
printing diagnostics showing the ranges of each node in the tree.

It corresponds to:
   [PATCH 15/22] Add plugin to recursively dump the source-ranges in a tree
     https://gcc.gnu.org/ml/gcc-patches/2015-09/msg00741.html
from v1 of the patch kit.

Changes in v2:
   * the output no longer contains the PARAM_DECL and INTEGER_CST
     leaves since we no longer have range data for them; updated
     the expected output accordingly.
   * slightly updated to eliminate use of SOURCE_RANGE

Updated screenshot:
   
https://dmalcolm.fedorapeople.org/gcc/2015-09-22/diagnostic-test-show-trees-1.html

gcc/testsuite/ChangeLog:
        * gcc.dg/plugin/diagnostic-test-show-trees-1.c: New file.
        * gcc.dg/plugin/diagnostic_plugin_show_trees.c: New file.
        * gcc.dg/plugin/plugin.exp (plugin_test_list): Add
        diagnostic_plugin_show_trees.c and diagnostic-test-show-trees-1.c.
OK when all the prereqs are approved.

I'll avoid the request that you check that the headers are in proper order & reduced form for the plugin test since it's the testsuite not the compiler proper. :-)

jeff


Reply via email to