aboutsummaryrefslogtreecommitdiff
path: root/gcc/passes.c
diff options
context:
space:
mode:
authorJoern Rennecke <amylaar@spamcop.net>2009-12-19 02:33:03 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2009-12-19 02:33:03 +0000
commit2a5e9d165ef6cc2cb3b783b5aa1c4a37dfd166aa (patch)
tree64645446df1c6d17b691611d925a9573c34adf27 /gcc/passes.c
parentdedf9c63c43af91427465267a90db9b1c0840f9c (diff)
downloadgcc-2a5e9d165ef6cc2cb3b783b5aa1c4a37dfd166aa.zip
gcc-2a5e9d165ef6cc2cb3b783b5aa1c4a37dfd166aa.tar.gz
gcc-2a5e9d165ef6cc2cb3b783b5aa1c4a37dfd166aa.tar.bz2
Makefile.in (PLUGIN_HEADERS): Add more headers.
* Makefile.in (PLUGIN_HEADERS): Add more headers. * tree-pass.h (GCC_PASS_LISTS): Define. (PASS_LIST_NO_all_lowering_passes): New enumeration value. (PASS_LIST_NO_all_small_ipa_passes): Likewise. (PASS_LIST_NO_all_regular_ipa_passes): Likewise. (PASS_LIST_NO_all_lto_gen_passes): Likewise. (PASS_LIST_NO_all_passes): Likewise. (PASS_LIST_NUM): Likewise. (gcc_pass_lists): Declare. * passes.c (gcc_pass_lists): Define. From-SVN: r155354
Diffstat (limited to 'gcc/passes.c')
-rw-r--r--gcc/passes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/passes.c b/gcc/passes.c
index a373a00..fde3379 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -337,6 +337,11 @@ struct rtl_opt_pass pass_postreload =
struct opt_pass *all_passes, *all_small_ipa_passes, *all_lowering_passes,
*all_regular_ipa_passes, *all_lto_gen_passes;
+/* This is used by plugins, and should also be used in register_pass. */
+#define DEF_PASS_LIST(LIST) &LIST,
+struct opt_pass **gcc_pass_lists[] = { GCC_PASS_LISTS NULL };
+#undef DEF_PASS_LIST
+
/* A map from static pass id to optimization pass. */
struct opt_pass **passes_by_id;
int passes_by_id_size;