diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-04 15:05:26 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-04 15:05:26 +0000 |
commit | 154ee3b816be8f9918b5c3d80df26dd80849efd5 (patch) | |
tree | 130ff355eaa28d20f9252f17820bbf64de1c44c6 /gcc/opts.c | |
parent | 4c369c583e246d2c2e18262a6e574d2f8e2e7fb4 (diff) | |
download | gcc-154ee3b816be8f9918b5c3d80df26dd80849efd5.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126323 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/opts.c b/gcc/opts.c index 974c19b3765..97bcb9f998a 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -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_: |