[gcc(refs/users/kubaneko/heads/histogram)] change typo

Ondrej Kubanek kubaneko@gcc.gnu.org
Mon Feb 27 15:18:37 GMT 2023


https://gcc.gnu.org/g:a19d946ebcf24ce1b8387a4ba0c2458901c2324c

commit a19d946ebcf24ce1b8387a4ba0c2458901c2324c
Author: kubaneko <kubanek0ondrej@gmail.com>
Date:   Mon Feb 27 15:18:25 2023 +0000

    change typo

Diff:
---
 libgcc/libgcov-profiler.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libgcc/libgcov-profiler.c b/libgcc/libgcov-profiler.c
index 9625778d2c7..7d9ff90d40c 100644
--- a/libgcc/libgcov-profiler.c
+++ b/libgcc/libgcov-profiler.c
@@ -64,8 +64,7 @@ floor_log2 (gcov_type_unsigned x)
 void
 __gcov_histogram_profiler (gcov_type *counters, gcov_type value, gcov_type hist_sizes)
 {
-  fprintf (stderr, "profiling:Skip\n");
-  assert(hist_sizes>=0 && value>=0);
+  gcc_assert(hist_sizes>=0 && value>=0);
   gcov_type_unsigned hist_size=hist_sizes;
   gcov_type_unsigned u_value=value;
   gcov_type_unsigned tot_size=hist_size>>32;
@@ -93,8 +92,7 @@ __gcov_histogram_profiler (gcov_type *counters, gcov_type value, gcov_type hist_
 void
 __gcov_histogram_profiler_atomic (gcov_type *counters, gcov_type value, gcov_type hist_sizes)
 {
-  fprintf (stderr, "profiling:Skip\n");
-  assert(hist_sizes>=0 && value>=0);
+  gcc_assert(hist_sizes>=0 && value>=0);
   gcov_type_unsigned hist_size=hist_sizes;
   gcov_type_unsigned u_value=value;
   gcov_type_unsigned tot_size=hist_size>>32;


More information about the Gcc-cvs mailing list