This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Disable tracer by default for profile use (issue4428074)
- From: singhai at google dot com (Sharad Singhai)
- To: reply at codereview dot appspotmail dot com, dnovillo at google dot com, gcc-patches at gcc dot gnu dot org
- Date: Thu, 28 Apr 2011 11:51:25 -0700 (PDT)
- Subject: Disable tracer by default for profile use (issue4428074)
This patch disables -ftracer for profile use. Okay for google/main?
Thanks,
Sharad
2011-04-28 Sharad Singhai <singhai@google.com>
Google Ref 40087
* opts.c (common_handle_option): Disable -ftracer for profile use.
* doc/invoke.texi: Update doc that -ftracer is no longer enabled for FDO.
Index: doc/invoke.texi
===================================================================
--- doc/invoke.texi (revision 173048)
+++ doc/invoke.texi (working copy)
@@ -7930,7 +7930,7 @@
generally profitable only with profile feedback available.
The following options are enabled: @code{-fbranch-probabilities}, @code{-fvpt},
-@code{-funroll-loops}, @code{-fpeel-loops}, @code{-ftracer}
+@code{-funroll-loops}, @code{-fpeel-loops}.
By default, GCC emits an error message if the feedback profiles do not
match the source code. This error can be turned into a warning by using
Index: opts.c
===================================================================
--- opts.c (revision 173048)
+++ opts.c (working copy)
@@ -1531,8 +1531,6 @@
opts->x_flag_unroll_loops = value;
if (!opts_set->x_flag_peel_loops)
opts->x_flag_peel_loops = value;
- if (!opts_set->x_flag_tracer)
- opts->x_flag_tracer = value;
if (!opts_set->x_flag_value_profile_transformations)
opts->x_flag_value_profile_transformations = value;
if (!opts_set->x_flag_inline_functions)
--
This patch is available for review at http://codereview.appspot.com/4428074