aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2010-06-29 14:38:13 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2010-06-29 15:38:13 +0100
commit74f7912ac84090b59ebc8fffa51893b167a0552a (patch)
tree59640e76d8830768e1fbdfbf9ed5e3164eca252d /gcc/target.h
parent20a6bb58201d19ef46edaa44266c2dc2e992b365 (diff)
downloadgcc-74f7912ac84090b59ebc8fffa51893b167a0552a.zip
gcc-74f7912ac84090b59ebc8fffa51893b167a0552a.tar.gz
gcc-74f7912ac84090b59ebc8fffa51893b167a0552a.tar.bz2
tm.texi (TARGET_OPTION_OVERRIDE): Document.
* doc/tm.texi (TARGET_OPTION_OVERRIDE): Document. (OVERRIDE_OPTIONS): Add note of obsolescence. Replace references with references to TARGET_OPTION_OVERRIDE. (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to the macro). * targhooks.c (default_target_option_override): New function. * targhooks.h (default_target_option_override): Declare. * target.h (struct gcc_target): Add override member to target_option emmber. * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with targetm.target_option.override call. * target-def.h (TARGET_OPTION_OVERRIDE): Define. (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE. From-SVN: r161538
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index 6ced770..71b4d20 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -1264,6 +1264,9 @@ struct gcc_target
true if the options are valid, and set the current state. */
bool (*pragma_parse) (tree, tree);
+ /* Do option overrides for the target. */
+ void (*override) (void);
+
/* Function to determine if one function can inline another function. */
bool (*can_inline_p) (tree, tree);
} target_option;