aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-29 14:38:13 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-29 14:38:13 +0000
commitcc5d382145d0201956955f5aa142ba44ea3935cb (patch)
tree59640e76d8830768e1fbdfbf9ed5e3164eca252d /gcc/target.h
parent292233cd15a6655be048141a27ac4bf1e3a46c73 (diff)
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161538 138bc75d-0d04-0410-961f-82ee72b054a4
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 6ced77061cf..71b4d202a98 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;