public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Kito Cheng <kito@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-1153] RISC-V: Supress warning for comparison of integer expressions of different signedness
Date: Fri, 17 Jun 2022 13:59:49 +0000 (GMT)	[thread overview]
Message-ID: <20220617135949.05A1C385355B@sourceware.org> (raw)

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

commit r13-1153-gd6b423882a05d7b4f40ae1e9d942c9c4c13761b7
Author: Kito Cheng <kito.cheng@sifive.com>
Date:   Fri Jun 17 21:57:35 2022 +0800

    RISC-V: Supress warning for comparison of integer expressions of different signedness
    
    gcc/ChangeLog:
    
            * config/riscv/bitmanip.md: Supress warning.

Diff:
---
 gcc/config/riscv/bitmanip.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/riscv/bitmanip.md b/gcc/config/riscv/bitmanip.md
index 6c1ccc6f8c5..d1570ce8508 100644
--- a/gcc/config/riscv/bitmanip.md
+++ b/gcc/config/riscv/bitmanip.md
@@ -102,7 +102,7 @@
 {
 	unsigned HOST_WIDE_INT mask = UINTVAL (operands[3]);
 	/* scale: shift within the sh[123]add.uw */
-	int scale = 32 - clz_hwi (mask);
+	unsigned HOST_WIDE_INT scale = 32 - clz_hwi (mask);
 	/* bias:  pre-scale amount (i.e. the prior shift amount) */
 	int bias = ctz_hwi (mask) - scale;


                 reply	other threads:[~2022-06-17 13:59 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=20220617135949.05A1C385355B@sourceware.org \
    --to=kito@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).