This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
trunk: PATCH: passes with name starting with dot have no dump file.
- From: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 31 Jul 2008 11:01:36 +0200
- Subject: trunk: PATCH: passes with name starting with dot have no dump file.
Hello All,
From discussion on http://gcc.gnu.org/ml/gcc/2008-07/msg00655.html
I propose this patch to not dumping a pass whose name start with a dot.
Index: gcc/tree-pass.h
===================================================================
--- gcc/tree-pass.h (revision 138368)
+++ gcc/tree-pass.h (working copy)
@@ -104,7 +104,8 @@
SIMPLE_IPA_PASS,
IPA_PASS
} type;
- /* Terse name of the pass used as a fragment of the dump file name. */
+ /* Terse name of the pass used as a fragment of the dump file
+ name. If the name starts with a dot, no dump happens. */
const char *name;
/* If non-null, this pass and all sub-passes are executed only if
Index: gcc/passes.c
===================================================================
--- gcc/passes.c (revision 138368)
+++ gcc/passes.c (working copy)
@@ -406,7 +406,7 @@
int new_properties = (properties | pass->properties_provided)
& ~pass->properties_destroyed;
- if (pass->name)
+ if (pass->name && pass->name[0] != '.')
register_one_dump_file (pass);
if (pass->sub)
Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog (revision 138368)
+++ gcc/ChangeLog (working copy)
@@ -1,3 +1,10 @@
+2008-07-31 Basile Starynkevitch <basile@starynkevitch>
+ * tree-pass.h: added comment about not dumping passes with name
+ starting with dot in struct opt_pass.
+
+ * passes.c (register_dump_files_1): don't do dump for a pass with
+ name starting with dot.
+
Ok for trunk if it bootstraps?
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***