This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Name unnamed passes and change duplicate pass names


This third patch isn't really necessary.  I noticed that there are
already some named passes that don't dump any information that I could
find (though maybe they do in some cases that I missed).  Here's a
patch to turn off their dump files just to tidy up.

I bootstrapped these three patches and tested them without regressions
on x86_64-unknown-linux-gnu.

2009-05-16 Justin Seyster <jrseys@gmail.com>

gcc/
	* df-core.c (pass_df_finish): Disable dump file for pass (with *
	name prefix).
	* cfgcleanup.c (pass_jump): Likewise.
	* tree-optimize.c (pass_all_early_optimizations): Likewise.
	* reginfo.c (pass_subregs_of_mode_init): Likewise.
	(pass_subregs_of_mode_finish): Likewise.

Index: gcc/df-core.c
===================================================================
--- gcc/df-core.c	(revision 147136)
+++ gcc/df-core.c	(working copy)
@@ -836,7 +836,7 @@
 {
  {
   RTL_PASS,
-  "dfinish",                            /* name */
+  "*dfinish",                           /* name */
   NULL,					/* gate */
   rest_of_handle_df_finish,             /* execute */
   NULL,                                 /* sub */
Index: gcc/cfgcleanup.c
===================================================================
--- gcc/cfgcleanup.c	(revision 147136)
+++ gcc/cfgcleanup.c	(working copy)
@@ -2207,7 +2207,7 @@
 {
  {
   RTL_PASS,
-  "sibling",                            /* name */
+  "*sibling",                           /* name */
   NULL,                                 /* gate */
   rest_of_handle_jump,			/* execute */
   NULL,                                 /* sub */
Index: gcc/tree-optimize.c
===================================================================
--- gcc/tree-optimize.c	(revision 147136)
+++ gcc/tree-optimize.c	(working copy)
@@ -135,7 +135,7 @@
 {
  {
   GIMPLE_PASS,
-  "early_optimizations",		/* name */
+  "*early_optimizations",		/* name */
   gate_all_early_optimizations,		/* gate */
   execute_early_local_optimizations,	/* execute */
   NULL,					/* sub */
Index: gcc/reginfo.c
===================================================================
--- gcc/reginfo.c	(revision 147136)
+++ gcc/reginfo.c	(working copy)
@@ -1376,7 +1376,7 @@
 {
  {
   RTL_PASS,
-  "subregs_of_mode_init",               /* name */
+  "*subregs_of_mode_init",              /* name */
   gate_subregs_of_mode_init,            /* gate */
   init_subregs_of_mode,                 /* execute */
   NULL,                                 /* sub */
@@ -1395,7 +1395,7 @@
 {
  {
   RTL_PASS,
-  "subregs_of_mode_finish",               /* name */
+  "*subregs_of_mode_finish",            /* name */
   gate_subregs_of_mode_init,            /* gate */
   finish_subregs_of_mode,               /* execute */
   NULL,                                 /* sub */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]