]> git.ipfire.org Git - thirdparty/gcc.git/commit
lto-streamer-in: Adjust assert [PR102989]
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Aug 2023 07:23:08 +0000 (09:23 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 10 Aug 2023 07:23:08 +0000 (09:23 +0200)
commitd5ad55a83d504df582d1e6f1c168454a028c0437
treec6b756ed49bc9129cbb5205e23c0f2f0f16bcc76
parentb129d6b5f5f13995d57d677afcb3e94d0d9c327f
lto-streamer-in: Adjust assert [PR102989]

With _BitInt(575) or any other _BitInt(513) or larger constants we can
run into this assertion.  MAX_BITSIZE_MODE_ANY_INT is just a value from
which WIDE_INT_MAX_PRECISION is derived.

2023-08-10  Jakub Jelinek  <jakub@redhat.com>

PR c/102989
* lto-streamer-in.cc (lto_input_tree_1): Assert TYPE_PRECISION
is up to WIDE_INT_MAX_PRECISION rather than MAX_BITSIZE_MODE_ANY_INT.
gcc/lto-streamer-in.cc