From 74f7912ac84090b59ebc8fffa51893b167a0552a Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Tue, 29 Jun 2010 14:38:13 +0000 Subject: 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 --- gcc/toplev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gcc/toplev.c') 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) -- cgit v1.1