diff options
author | Duncan Sands <baldrick@free.fr> | 2009-07-07 16:52:01 +0200 |
---|---|---|
committer | Duncan Sands <baldrick@gcc.gnu.org> | 2009-07-07 14:52:01 +0000 |
commit | cf400ddbafde8ae44c3b09c71e8305cd73c21688 (patch) | |
tree | 0f824305415785c2845bd9b16d6db80a5c5c675e | |
parent | d575725b2554cd5d37eb686ace2b2c3fb947604e (diff) | |
download | gcc-cf400ddbafde8ae44c3b09c71e8305cd73c21688.tar.gz |
Give names to some currently nameless passes (this
is useful for referring to them from plugins).
From-SVN: r149331
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/final.c | 2 | ||||
-rw-r--r-- | gcc/passes.c | 2 | ||||
-rw-r--r-- | gcc/tree-optimize.c | 2 |
4 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4222500a22c..d7a4f9c7495 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 H.J. Lu <hongjiu.lu@intel.com> * config/ia64/ia64.c (ia64_handle_model_attribute): Remove diff --git a/gcc/final.c b/gcc/final.c index baf5f3c6796..25084431555 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -4451,7 +4451,7 @@ struct rtl_opt_pass pass_clean_state = { { RTL_PASS, - NULL, /* name */ + "*clean_state", /* name */ NULL, /* gate */ rest_of_clean_state, /* execute */ NULL, /* sub */ diff --git a/gcc/passes.c b/gcc/passes.c index ca69beefd32..bb52dc7eb3c 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -288,7 +288,7 @@ struct gimple_opt_pass pass_rest_of_compilation = { { GIMPLE_PASS, - NULL, /* name */ + "*rest_of_compilation", /* name */ gate_rest_of_compilation, /* gate */ NULL, /* execute */ NULL, /* sub */ diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index 025658426cb..765e021e908 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -66,7 +66,7 @@ struct gimple_opt_pass pass_all_optimizations = { { GIMPLE_PASS, - NULL, /* name */ + "*all_optimizations", /* name */ gate_all_optimizations, /* gate */ NULL, /* execute */ NULL, /* sub */ |