public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Ondrej Kubanek <kubaneko@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/kubaneko/heads/histogram)] change typo
Date: Mon, 27 Feb 2023 15:18:37 +0000 (GMT)	[thread overview]
Message-ID: <20230227151837.1171C3858D32@sourceware.org> (raw)

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;

                 reply	other threads:[~2023-02-27 15:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230227151837.1171C3858D32@sourceware.org \
    --to=kubaneko@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).