OSDN Git Service

Give names to some currently nameless passes (this
authorbaldrick <baldrick@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Jul 2009 14:52:01 +0000 (14:52 +0000)
committerbaldrick <baldrick@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Jul 2009 14:52:01 +0000 (14:52 +0000)
is useful for referring to them from plugins).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149331 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/final.c
gcc/passes.c
gcc/tree-optimize.c

index 4222500..d7a4f9c 100644 (file)
@@ -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
 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
 
        * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
index baf5f3c..2508443 100644 (file)
@@ -4451,7 +4451,7 @@ struct rtl_opt_pass pass_clean_state =
 {
  {
   RTL_PASS,
 {
  {
   RTL_PASS,
-  NULL,                                 /* name */
+  "*clean_state",                       /* name */
   NULL,                                 /* gate */
   rest_of_clean_state,                  /* execute */
   NULL,                                 /* sub */
   NULL,                                 /* gate */
   rest_of_clean_state,                  /* execute */
   NULL,                                 /* sub */
index ca69bee..bb52dc7 100644 (file)
@@ -288,7 +288,7 @@ struct gimple_opt_pass pass_rest_of_compilation =
 {
  {
   GIMPLE_PASS,
 {
  {
   GIMPLE_PASS,
-  NULL,                                 /* name */
+  "*rest_of_compilation",               /* name */
   gate_rest_of_compilation,             /* gate */
   NULL,                                 /* execute */
   NULL,                                 /* sub */
   gate_rest_of_compilation,             /* gate */
   NULL,                                 /* execute */
   NULL,                                 /* sub */
index 0256584..765e021 100644 (file)
@@ -66,7 +66,7 @@ struct gimple_opt_pass pass_all_optimizations =
 {
  {
   GIMPLE_PASS,
 {
  {
   GIMPLE_PASS,
-  NULL,                                        /* name */
+  "*all_optimizations",                        /* name */
   gate_all_optimizations,              /* gate */
   NULL,                                        /* execute */
   NULL,                                        /* sub */
   gate_all_optimizations,              /* gate */
   NULL,                                        /* execute */
   NULL,                                        /* sub */