This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PLUGINS] Name more passes
- From: Duncan Sands <baldrick at free dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 07 Jul 2009 13:57:35 +0200
- Subject: [PLUGINS] Name more passes
This patch gives names to some currently nameless passes.
Useful for referring to them from plugins. I plan to apply
this patch under the trivial rule if no-one objects to it.
Best wishes,
Duncan.
2009-07-07 Duncan Sands <baldrick@free.fr>
* final.c (pass_clean_state): Give the pass a name.
* passes.c (pass_rest_of_compilation): Likewise.
* tree-optimize.c (pass_all_optimizations): Likewise.
Index: gcc.fsf.master/gcc/passes.c
===================================================================
--- gcc.fsf.master.orig/gcc/passes.c 2009-07-07 13:44:01.000000000 +0200
+++ gcc.fsf.master/gcc/passes.c 2009-07-07 13:49:10.000000000 +0200
@@ -288,7 +288,7 @@
{
{
GIMPLE_PASS,
- NULL, /* name */
+ "rest_of_compilation", /* name */
gate_rest_of_compilation, /* gate */
NULL, /* execute */
NULL, /* sub */
Index: gcc.fsf.master/gcc/final.c
===================================================================
--- gcc.fsf.master.orig/gcc/final.c 2009-07-07 13:44:01.000000000 +0200
+++ gcc.fsf.master/gcc/final.c 2009-07-07 13:49:10.000000000 +0200
@@ -4451,7 +4451,7 @@
{
{
RTL_PASS,
- NULL, /* name */
+ "clean_state", /* name */
NULL, /* gate */
rest_of_clean_state, /* execute */
NULL, /* sub */
Index: gcc.fsf.master/gcc/tree-optimize.c
===================================================================
--- gcc.fsf.master.orig/gcc/tree-optimize.c 2009-07-07 13:44:01.000000000 +0200
+++ gcc.fsf.master/gcc/tree-optimize.c 2009-07-07 13:49:10.000000000 +0200
@@ -66,7 +66,7 @@
{
{
GIMPLE_PASS,
- NULL, /* name */
+ "all_optimizations", /* name */
gate_all_optimizations, /* gate */
NULL, /* execute */
NULL, /* sub */
Index: gcc.fsf.master/gcc/ChangeLog
===================================================================
--- gcc.fsf.master.orig/gcc/ChangeLog 2009-07-07 13:49:15.000000000 +0200
+++ gcc.fsf.master/gcc/ChangeLog 2009-07-07 13:52:45.000000000 +0200
@@ -1,3 +1,9 @@
+2009-07-07 Duncan Sands <baldrick@free.fr>
+
+ * final.c (pass_clean_state): Give the pass a name.
+ * passes.c (pass_rest_of_compilation): Likewise.
+ * tree-optimize.c (pass_all_optimizations): Likewise.
+
2009-07-07 Olivier Hainque <hainque@adacore.com>
* config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak