diff options
author | Nick Clifton <nickc@redhat.com> | 2007-07-04 15:05:26 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2007-07-04 15:05:26 +0000 |
commit | 67e6ba46a4215ab85c2fa8ae0922740f71fa47b5 (patch) | |
tree | 130ff355eaa28d20f9252f17820bbf64de1c44c6 /gcc/opts.c | |
parent | fda41d93b807f02db14dd054e6daa4d639233445 (diff) | |
download | gcc-67e6ba46a4215ab85c2fa8ae0922740f71fa47b5.zip gcc-67e6ba46a4215ab85c2fa8ae0922740f71fa47b5.tar.gz gcc-67e6ba46a4215ab85c2fa8ae0922740f71fa47b5.tar.bz2 |
target.h (struct gcc_target): Add target_help field.
* target.h (struct gcc_target): Add target_help field.
* target-def.h (TARGET_HELP): New.
(TARGET_INITIALIZER): Use TARGET_HELP.
* opts.c (command_handle_option): Invoke target_help function, if defined, when the
user has specified --target-help on the command line.
* doc/invoke.texi: Mention that --target-help might print additional information.
* doc/tm.texi: Document TARGET_HELP hook.
* arm.c (TARGET_HELP): Override default definition.
(arm_target_help): New - display a wrapped list of cores and architectures supported.
From-SVN: r126323
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1229,6 +1229,10 @@ common_handle_option (size_t scode, const char *arg, int value, case OPT__target_help: print_specific_help (CL_TARGET, CL_UNDOCUMENTED, 0); exit_after_options = true; + + /* Allow the target a chance to give the user some additional information. */ + if (targetm.target_help) + targetm.target_help (); break; case OPT_fhelp_: |