diff options
author | Sharad Singhai <singhai@google.com> | 2013-10-31 01:01:40 +0000 |
---|---|---|
committer | Sharad Singhai <singhai@gcc.gnu.org> | 2013-10-31 01:01:40 +0000 |
commit | 477e804b725b654821bfea08e991c3d594046e0c (patch) | |
tree | 6e7acb4a87d9f90c7e8c1a1eb270a322c0c144bb /gcc | |
parent | 4bbd2ea80fb4952a0127b5ac386ab1803f27f788 (diff) | |
download | gcc-477e804b725b654821bfea08e991c3d594046e0c.zip gcc-477e804b725b654821bfea08e991c3d594046e0c.tar.gz gcc-477e804b725b654821bfea08e991c3d594046e0c.tar.bz2 |
re PR middle-end/58134 (-ftree-vectorizer-verbose=<n> shows vectorized loops only for N== 1 and N >2 but not for N==2)
2013-10-30 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.
* 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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/ada/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/ada/gnat_ugn.texi | 5 | ||||
-rw-r--r-- | gcc/common.opt | 4 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 19 | ||||
-rw-r--r-- | gcc/opts-global.c | 38 | ||||
-rw-r--r-- | gcc/opts.c | 6 |
7 files changed, 16 insertions, 70 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1951ea9..3b5d952 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2013-10-30 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. + * 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 <dj@redhat.com> * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 5ff2c4b..44d0484 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2013-10-30 Sharad Singhai <singhai@google.com> + + * gnat_ugn.texi: Remove option description for PR middle-end/58134. + 2013-10-29 David Malcolm <dmalcolm@redhat.com> * 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 a82f20b..edb3886 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 398b57d..3a40db2 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=<number> 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 233338b..ef79df3 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 ba1bb4c..af603b9 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 (); } @@ -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); |