From 477e804b725b654821bfea08e991c3d594046e0c Mon Sep 17 00:00:00 2001 From: Sharad Singhai Date: Thu, 31 Oct 2013 01:01:40 +0000 Subject: [PATCH] re PR middle-end/58134 (-ftree-vectorizer-verbose= shows vectorized loops only for N== 1 and N >2 but not for N==2) 2013-10-30 Sharad Singhai PR middle-end/58134 * opts.c (common_handle_option): Remove deprecated option -ftree-vectorizer-verbose. * doc/invoke.texi (Debugging Options): Ditto. * opts-global.c (handle_common_deferred_options): Ditto. (dump_remap_tree_vectorizer_verbose): Delete. * common.opt: Set -ftree-vectorizer-verbose as an ignored option. ada/ChangeLog * gnat_ugn.texi: Remove option description for PR middle-end/58134. From-SVN: r204244 --- gcc/ChangeLog | 10 ++++++++++ gcc/ada/ChangeLog | 4 ++++ gcc/ada/gnat_ugn.texi | 5 ----- gcc/common.opt | 4 ++-- gcc/doc/invoke.texi | 19 ------------------- gcc/opts-global.c | 38 -------------------------------------- gcc/opts.c | 6 ------ 7 files changed, 16 insertions(+), 70 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1951ea9e41d..3b5d9522b47 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2013-10-30 Sharad Singhai + + PR middle-end/58134 + * opts.c (common_handle_option): Remove deprecated option + -ftree-vectorizer-verbose. + * doc/invoke.texi (Debugging Options): Ditto. + * opts-global.c (handle_common_deferred_options): Ditto. + (dump_remap_tree_vectorizer_verbose): Delete. + * common.opt: Set -ftree-vectorizer-verbose as an ignored option. + 2013-10-30 DJ Delorie * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 5ff2c4b4bdd..44d04845b9e 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2013-10-30 Sharad Singhai + + * gnat_ugn.texi: Remove option description for PR middle-end/58134. + 2013-10-29 David Malcolm * gcc-interface/trans.c (finalize_nrv): Update for conversion of diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi index a82f20b08c7..edb3886a03a 100644 --- a/gcc/ada/gnat_ugn.texi +++ b/gcc/ada/gnat_ugn.texi @@ -10696,11 +10696,6 @@ preferably to other optimizations by means of pragma @code{Loop_Optimize}: placed immediately within the loop will convey the appropriate hint to the compiler for this loop. -You can obtain information about the vectorization performed by the compiler -by specifying @option{-ftree-vectorizer-verbose=N}. For more details of -this switch, see @ref{Debugging Options,,Options for Debugging Your Program -or GCC, gcc, Using the GNU Compiler Collection (GCC)}. - @node Other Optimization Switches @subsection Other Optimization Switches @cindex Optimization Switches diff --git a/gcc/common.opt b/gcc/common.opt index 398b57d7743..3a40db203fa 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -2276,8 +2276,8 @@ 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= This switch is deprecated. Use -fopt-info instead. +Common Joined RejectNegative Ignore +Does nothing. Preserved for backward compatibility. ftree-loop-vectorize Common Report Var(flag_tree_loop_vectorize) Optimization diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 233338b919e..ef79df3ae66 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -321,7 +321,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 @@ -6361,24 +6360,6 @@ the first option takes effect and the subsequent options are 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 diff --git a/gcc/opts-global.c b/gcc/opts-global.c index ba1bb4c11fd..af603b956e3 100644 --- a/gcc/opts-global.c +++ b/gcc/opts-global.c @@ -232,40 +232,6 @@ read_cmdline_options (struct gcc_options *opts, struct gcc_options *opts_set, } } -/* 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; @@ -456,10 +422,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 (); } diff --git a/gcc/opts.c b/gcc/opts.c index b7d56e33715..1d02b1020d5 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -1788,12 +1788,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);