aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2009-10-29 16:44:02 +0000
committerSteve Ellcey <sje@cup.hp.com>2009-10-29 16:44:02 +0000
commitb89655b6a618ac11c25a7d8812ab424654995eed (patch)
tree4c4f74fb7f7c6c8fe0a62100be5c7ce3bf5175c4 /gcc/target.h
parentc83f9741ecb0c04c4af0cf366f62ddd3e5b88426 (diff)
2009-10-29 Steve Ellcey <sje@cup.hp.com>
PR middle-end/37565 PR target/38018 * doc/tm.texi (OVERRIDE_OPTIONS): Update. (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New. * optc-gen.awk (cl_target_option_restore): Include call to targetm.override_options_after_change. * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New. * target.h (override_options_after_change): New. * c-common.c (parse_optimize_options): Call targetm.override_options_after_change. * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New. (ia64_override_options_after_change): New. (ia64_override_options) Add call to above. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@153714 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index 31a54f321df..6d62d5207e5 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -500,6 +500,11 @@ struct gcc_target
/* The initial value of target_flags. */
int default_target_flags;
+ /* Allow target specific overriding of option settings after options have
+ been changed by an attribute or pragma or when it is reset at the
+ end of the code affected by an attribute or pragma. */
+ void (* override_options_after_change) (void);
+
/* Handle target switch CODE (an OPT_* value). ARG is the argument
passed to the switch; it is NULL if no argument was. VALUE is the
value of ARG if CODE specifies a UInteger option, otherwise it is