summaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-07-04 15:05:26 +0000
committerNick Clifton <nickc@gcc.gnu.org>2007-07-04 15:05:26 +0000
commit67e6ba46a4215ab85c2fa8ae0922740f71fa47b5 (patch)
tree130ff355eaa28d20f9252f17820bbf64de1c44c6 /gcc/target.h
parentfda41d93b807f02db14dd054e6daa4d639233445 (diff)
downloadgcc-67e6ba46a4215ab85c2fa8ae0922740f71fa47b5.tar.gz
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/target.h')
-rw-r--r--gcc/target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index effd93345dd..4e84e5ab229 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -425,6 +425,10 @@ struct gcc_target
form was. Return true if the switch was valid. */
bool (* handle_option) (size_t code, const char *arg, int value);
+ /* Display extra, target specific information in response to a
+ --target-help switch. */
+ void (* target_help) (void);
+
/* Return machine mode for filter value. */
enum machine_mode (* eh_return_filter_mode) (void);