This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR middle-end/58134
- From: Sharad Singhai <singhai at google dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Richard Biener <rguenth at gcc dot gnu dot org>
- Date: Tue, 29 Oct 2013 17:55:36 -0700
- Subject: [PATCH] Fix PR middle-end/58134
- Authentication-results: sourceware.org; auth=none
This patch removes a deprecated option -ftree-vectorizer-verbose. It
was already implemented in terms of -fopt-info and makes little sense
to keep it around longer. It causes needless confusion as reported in
PR middle-end/58134.
I noticed that several gettext related gcc/po files contain help
translation for the option being removed. However, I haven't updated
them as I wasn't sure if these files should be regenerated using a
separate mechanism. If needed, I can include manual updates to those
.po files as well.
Bootstrapped and regression tested on x86_64-unknown-linux-gnu. Okay
for the trunk?
Thanks,
Sharad
2013-10-29 Sharad Singhai <singhai@google.com>
PR middle-end/58134
* opts.c (common_handle_option): Remove deprecated option
-ftree-vectorizer-verbose.
* doc/invoke.texi (Debugging Options): Ditto.
* common.opt: Ditto.
* opts-global.c (handle_common_deferred_options): Ditto.
(dump_remap_tree_vectorizer_verbose): Delete.
2013-10-29 Sharad Singhai <singhai@google.com>
PR middle-end/58134
* opts.c (common_handle_option): Remove deprecated option
-ftree-vectorizer-verbose.
* doc/invoke.texi (Debugging Options): Ditto.
* common.opt: Ditto.
* opts-global.c (handle_common_deferred_options): Ditto.
(dump_remap_tree_vectorizer_verbose): Delete.
Index: opts.c
===================================================================
--- opts.c (revision 204038)
+++ opts.c (working copy)
@@ -1789,12 +1789,6 @@ common_handle_option (struct gcc_options *opts,
opts->x_flag_stack_usage_info = value != 0;
break;
- case OPT_ftree_vectorizer_verbose_:
- /* -ftree-vectorizer-verbose is deprecated. It is defined in
- -terms of fopt-info=N. */
- /* Deferred. */
- break;
-
case OPT_g:
set_debug_level (NO_DEBUG, DEFAULT_GDB_EXTENSIONS, arg, opts, opts_set,
loc);
Index: doc/invoke.texi
===================================================================
--- doc/invoke.texi (revision 204038)
+++ doc/invoke.texi (working copy)
@@ -322,7 +322,6 @@ Objective-C and Objective-C++ Dialects}.
-fdump-tree-fre@r{[}-@var{n}@r{]} @gol
-fdump-tree-vtable-verify @gol
-fdump-tree-vrp@r{[}-@var{n}@r{]} @gol
--ftree-vectorizer-verbose=@var{n} @gol
-fdump-tree-storeccp@r{[}-@var{n}@r{]} @gol
-fdump-final-insns=@var{file} @gol
-fcompare-debug@r{[}=@var{opts}@r{]} -fcompare-debug-second @gol
@@ -6376,24 +6375,6 @@ the first option takes effect and the subsequent o
ignored. Thus only the @file{vec.miss} is produced which cotaints
dumps from the vectorizer about missed opportunities.
-@item -ftree-vectorizer-verbose=@var{n}
-@opindex ftree-vectorizer-verbose
-This option is deprecated and is implemented in terms of
-@option{-fopt-info}. Please use @option{-fopt-info-@var{kind}} form
-instead, where @var{kind} is one of the valid opt-info options. It
-prints additional optimization information. For @var{n}=0 no
-diagnostic information is reported. If @var{n}=1 the vectorizer
-reports each loop that got vectorized, and the total number of loops
-that got vectorized. If @var{n}=2 the vectorizer reports locations
-which could not be vectorized and the reasons for those. For any
-higher verbosity levels all the analysis and transformation
-information from the vectorizer is reported.
-
-Note that the information output by @option{-ftree-vectorizer-verbose}
-option is sent to @file{stderr}. If the equivalent form
-@option{-fopt-info-@var{options}=@var{filename}} is used then the
-output is sent into @var{filename} instead.
-
@item -frandom-seed=@var{string}
@opindex frandom-seed
This option provides a seed that GCC uses in place of
Index: common.opt
===================================================================
--- common.opt (revision 204038)
+++ common.opt (working copy)
@@ -2270,10 +2270,6 @@ ftree-vectorize
Common Report Var(flag_tree_vectorize) Optimization
Enable vectorization on trees
-ftree-vectorizer-verbose=
-Common RejectNegative Joined UInteger Var(common_deferred_options) Defer
--ftree-vectorizer-verbose=<number> This switch is deprecated. Use -fopt-info instead.
-
ftree-loop-vectorize
Common Report Var(flag_tree_loop_vectorize) Optimization
Enable loop vectorization on trees
Index: opts-global.c
===================================================================
--- opts-global.c (revision 204038)
+++ opts-global.c (working copy)
@@ -231,40 +231,6 @@ read_cmdline_options (struct gcc_options *opts, st
}
}
-/* Handle -ftree-vectorizer-verbose=ARG by remapping it to -fopt-info.
- It remaps the old verbosity values as following:
-
- REPORT_NONE ==> No dump is output
- REPORT_VECTORIZED_LOCATIONS ==> "-optimized"
- REPORT_UNVECTORIZED_LOCATIONS ==> "-missed"
-
- Any higher verbosity levels get mapped to "-all" flags. */
-
-static void
-dump_remap_tree_vectorizer_verbose (const char *arg)
-{
- int value = atoi (arg);
- const char *remapped_opt_info = NULL;
-
- switch (value)
- {
- case 0:
- break;
- case 1:
- remapped_opt_info = "optimized";
- break;
- case 2:
- remapped_opt_info = "missed";
- break;
- default:
- remapped_opt_info = "all";
- break;
- }
-
- if (remapped_opt_info)
- opt_info_switch_p (remapped_opt_info);
-}
-
/* Language mask determined at initialization. */
static unsigned int initial_lang_mask;
@@ -455,10 +421,6 @@ handle_common_deferred_options (void)
stack_limit_rtx = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (opt->arg));
break;
- case OPT_ftree_vectorizer_verbose_:
- dump_remap_tree_vectorizer_verbose (opt->arg);
- break;
-
default:
gcc_unreachable ();
}