summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-16 14:31:45 +0000
committerespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-16 14:31:45 +0000
commit2dfeb300f788760c436633d99e144ab97192d63c (patch)
treec6fbd7f9013fa3335143a10692c790200c87a198 /gcc/toplev.c
parent0b35ccd7157213cf19130941a2644ed76ab4304b (diff)
downloadgcc-2dfeb300f788760c436633d99e144ab97192d63c.tar.gz
2009-04-16 Rafael Avila de Espindola <espindola@google.com>
* common.opt (fhelp): Add Var(help_flag). * gcc-plugin.h (plugin_info): Add help. * plugin.c (plugin_name_args): Add help. (register_plugin_info): Set plugin->help. (print_help_one_plugin): New. (print_plugins_help): New. * plugin.h (print_plugins_help): New. * toplev.c (toplev_main): Call print_plugins_help if needed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146195 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 725c3762767..0f3d30b3b63 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2279,6 +2279,9 @@ toplev_main (unsigned int argc, const char **argv)
if (version_flag)
print_version (stderr, "");
+ if (help_flag)
+ print_plugins_help (stderr, "");
+
/* Exit early if we can (e.g. -help). */
if (!exit_after_options)
do_compile ();