aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBasile Starynkevitch <bstarynk@gcc.gnu.org>2008-08-01 05:19:40 +0000
committerBasile Starynkevitch <bstarynk@gcc.gnu.org>2008-08-01 05:19:40 +0000
commit8e352cd32ce32dc689cd716921428709143f8920 (patch)
tree9484ffe873ca8d908800e707f82562aafe746b99
parentf2d6ca5081ba8fb31b5d03545f45cce12ac67b3f (diff)
downloadgcc-8e352cd32ce32dc689cd716921428709143f8920.zip
gcc-8e352cd32ce32dc689cd716921428709143f8920.tar.gz
gcc-8e352cd32ce32dc689cd716921428709143f8920.tar.bz2
tree-pass.h: Added comment about not dumping passes with name starting with star in struct...
2008-08-01 Basile Starynkevitch <basile@starynkevitch> * gcc/tree-pass.h: Added comment about not dumping passes with name starting with star in struct opt_pass. * gcc/passes.c (register_dump_files_1): Don't do dump for a pass with name starting with star. * gcc/doc/passes.texi (Pass manager): Mention pass names and special meaning of star prefix to avoid dump. From-SVN: r138450
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/doc/passes.texi4
-rw-r--r--gcc/passes.c2
-rw-r--r--gcc/tree-pass.h3
4 files changed, 16 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8d21c79..cbaed89 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2008-08-01 Basile Starynkevitch <basile@starynkevitch>
+ * tree-pass.h: Added comment about not dumping passes with name
+ starting with star in struct opt_pass.
+ * passes.c (register_dump_files_1): Don't do dump for a pass with
+ name starting with star.
+ * doc/passes.texi (Pass manager): Mention pass names and special
+ meaning of star prefix to avoid dump.
+
2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
* config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
@@ -68,6 +76,7 @@
(dwarf2out_stack_adjust): Use it.
(dwarf2out_frame_debug_expr): Likewise.
+>>>>>>> .r138449
2008-07-31 Richard Guenther <rguenther@suse.de>
PR tree-optimization/36978
diff --git a/gcc/doc/passes.texi b/gcc/doc/passes.texi
index a229538..daeaf95 100644
--- a/gcc/doc/passes.texi
+++ b/gcc/doc/passes.texi
@@ -166,6 +166,10 @@ not attempt to (re-)generate data structures or lower intermediate
language form based on the requirements of the next pass. Nevertheless,
what is present is useful, and a far sight better than nothing at all.
+Each pass may have its own dump file (for GCC debugging purposes).
+Passes without any names, or with a name starting with a star, do not
+dump anything.
+
TODO: describe the global variables set up by the pass manager,
and a brief description of how a new pass should use it.
I need to look at what info rtl passes use first@enddots{}
diff --git a/gcc/passes.c b/gcc/passes.c
index c6f6c8a..400717f 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -406,7 +406,7 @@ register_dump_files_1 (struct opt_pass *pass, int properties)
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)
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h
index 1e1463f..ea7e343 100644
--- a/gcc/tree-pass.h
+++ b/gcc/tree-pass.h
@@ -104,7 +104,8 @@ struct opt_pass
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 star, no dump happens. */
const char *name;
/* If non-null, this pass and all sub-passes are executed only if