]> git.ipfire.org Git - thirdparty/gcc.git/commit
bitint: Fix build [PR121413]
authorJakub Jelinek <jakub@redhat.com>
Wed, 6 Aug 2025 10:52:47 +0000 (12:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 6 Aug 2025 10:56:23 +0000 (12:56 +0200)
commit685527a408ea025591c7f887566d7049ddd72c02
treef9b6e07d7553eefdd1677bc39c5c35311b73e16f
parent297a1d1cb10308821949b4732ab19c822fe118cb
bitint: Fix build [PR121413]

Sorry, my bootstrap failed last night because of this, I've fixed it
up and it bootstrapped/regtested fine overnight, but in the morning
forgot to adjust the patch before committing.

Without this there is
.../gimple-lower-bitint.cc:7678:36: error: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Werror=sign-compare]
 7678 |                       if (min_prec > limb_prec && abi_limb_prec > limb_prec)
      |                           ~~~~~~~~~^~~~~~~~~~~

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

PR tree-optimization/121413
* gimple-lower-bitint.cc (gimple_lower_bitint): Fix up last
commit, cast limb_prec to unsigned before comparison.
gcc/gimple-lower-bitint.cc