]> git.ipfire.org Git - thirdparty/gcc.git/commit
value-range: Use int instead of uint for wi::ctz result [PR120746]
authorJakub Jelinek <jakub@redhat.com>
Sat, 21 Jun 2025 14:09:08 +0000 (16:09 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 21 Jun 2025 14:09:08 +0000 (16:09 +0200)
commitb76779c7cd6b92f167a80f16f11f599eea4dfc67
tree9d0277df47e9e837b17fc9a836eeaa7fc7c7f26f
parentd29cf57f9e4e9e16285a627a1717269ef7cf131b
value-range: Use int instead of uint for wi::ctz result [PR120746]

uint is some compatibility type in glibc sys/types.h enabled in misc/GNU
modes, so it doesn't exist on many hosts.
Furthermore, wi::ctz returns int rather than unsigned and the var is
only used in comparison to zero or as second argument of left shift, so
I think just using int instead of unsigned is better.

2025-06-21  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/120746
* value-range.cc (irange::snap): Use int type instead of uint.
gcc/value-range.cc