From 21486db35abe3b5409e4b458fc764da55b08f4c5 Mon Sep 17 00:00:00 2001 From: baldrick Date: Tue, 7 Jul 2009 14:52:01 +0000 Subject: [PATCH] Give names to some currently nameless passes (this 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 | 6 ++++++ gcc/final.c | 2 +- gcc/passes.c | 2 +- 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 + + * 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 * 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 */ -- 2.11.0