From patchwork Wed Apr 6 23:17:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: change TDI_generic into TDI_gimple From: Andi Hellmund X-Patchwork-Id: 90103 Message-Id: <4D9CF474.4070109@andihellmund.com> To: gcc-patches@gcc.gnu.org Date: Thu, 07 Apr 2011 01:17:08 +0200 Hey, while searching through the code related to debug dumps, I realized that that the TDI_generic enum value is misleading since it is used to dump out GIMPLE code instead of GENERIC tree code. This is already indicated by the used dump file name extension (.gimple). Changelog: * doc/invoke.texi: Adapt documentation. * tree-pass.h: replace TDI_generic by TDI_gimple. * cgraphunit.c: replace TDI_generic by TDI_gimple. * stor-layout.c: replace TDI_generic by TDI_gimple. Thanks, Andi Index: gcc/doc/invoke.texi =================================================================== --- gcc/doc/invoke.texi (revision 172064) +++ gcc/doc/invoke.texi (working copy) @@ -5453,7 +5453,7 @@ Dump after all tree based optimization, @item gimple @opindex fdump-tree-gimple -Dump each function before and after the gimplification pass to a file. The +Dump each function after the gimplification pass to a file. The file name is made by appending @file{.gimple} to the source file name. @item cfg Index: gcc/tree-pass.h =================================================================== --- gcc/tree-pass.h (revision 172064) +++ gcc/tree-pass.h (working copy) @@ -34,7 +34,7 @@ enum tree_dump_index TDI_tu, /* dump the whole translation unit. */ TDI_class, /* dump class hierarchy. */ TDI_original, /* dump each function before optimizing it */ - TDI_generic, /* dump each function after genericizing it */ + TDI_gimple, /* dump each function after gimplification */ TDI_nested, /* dump each function after unnesting it */ TDI_vcg, /* create a VCG graph file for each function's flowgraph. */ Index: gcc/cgraphunit.c =================================================================== --- gcc/cgraphunit.c (revision 172064) +++ gcc/cgraphunit.c (working copy) @@ -794,7 +794,7 @@ cgraph_analyze_function (struct cgraph_n body. */ if (!gimple_body (decl)) gimplify_function_tree (decl); - dump_function (TDI_generic, decl); + dump_function (TDI_gimple, decl); cgraph_lower_function (node); node->analyzed = true; Index: gcc/stor-layout.c =================================================================== --- gcc/stor-layout.c (revision 172064) +++ gcc/stor-layout.c (working copy) @@ -387,7 +387,7 @@ finalize_size_functions (void) { dump_function (TDI_original, fndecl); gimplify_function_tree (fndecl); - dump_function (TDI_generic, fndecl); + dump_function (TDI_gimple, fndecl); cgraph_finalize_function (fndecl, false); }