aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
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/toplev.c
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/toplev.c')
-rw-r--r--gcc/toplev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index c22cb98..276ae7e 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1761,10 +1761,8 @@ process_options (void)
so we can correctly initialize debug output. */
no_backend = lang_hooks.post_options (&main_input_filename);
-#ifdef OVERRIDE_OPTIONS
/* Some machines may reject certain combinations of options. */
- OVERRIDE_OPTIONS;
-#endif
+ targetm.target_option.override ();
/* Avoid any informative notes in the second run of -fcompare-debug. */
if (flag_compare_debug)