aboutsummaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authorZdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>2003-06-26 09:52:10 +0200
committerZdenek Dvorak <rakdver@gcc.gnu.org>2003-06-26 07:52:10 +0000
commitaf166e5d276114872596002803f7c300fc41a511 (patch)
tree705173673c74024b0bd270eb542967036fde5a26 /gcc/flags.h
parentff25ef99762093b40198f4560cfd78a0e6e61ffb (diff)
downloadgcc-af166e5d276114872596002803f7c300fc41a511.zip
gcc-af166e5d276114872596002803f7c300fc41a511.tar.gz
gcc-af166e5d276114872596002803f7c300fc41a511.tar.bz2
value-prof.c: New.
* value-prof.c: New. * value-prof.h: New. * Makefile.in (value-prof.o): New. (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta (profile.o): Add value-prof.h and tree.h dependency. * flags.h (flag_profile_values): Declare. * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS): Add new counters. (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE, GCOV_COUNTER_V_DELTA): New counter sections. (__gcov_merge_single, __gcov_merge_delta): Declare. * flow.c (mark_used_regs): Set subregs_of_mode only when the structure is initialized. * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions. * profile.c: Include value-prof.h and tree.h. (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler, gen_const_delta_profiler, instrument_values): New static functions. (get_exec_counts): Fix comment. (branch_prob): Invoke instrument_values. * toplev.c (flag_profile_values): New flag. * doc/invoke.texi (-fprofile-values): Document. From-SVN: r68519
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h
index 6ef4ece..e7a3ea8 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -191,6 +191,10 @@ extern int profile_flag;
extern int profile_arc_flag;
+/* Nonzero if value profile should be measured. */
+
+extern int flag_profile_values;
+
/* Nonzero if generating info for gcov to calculate line test coverage. */
extern int flag_test_coverage;