[Bug middle-end/115887] ICE: in gsi_insert_on_edge_immediate, at gimple-iterator.cc:849 with -O -fnon-call-exceptions -finstrument-functions and _BitInt()
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 17 15:51:21 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115887
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:01dfc5b4add9a5ed48c46f6b25cde6e55b9f3ff1
commit r14-10447-g01dfc5b4add9a5ed48c46f6b25cde6e55b9f3ff1
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Jul 17 17:32:21 2024 +0200
bitint: Use gsi_insert_on_edge rather than gsi_insert_on_edge_immediate
[PR115887]
The following testcase ICEs on x86_64-linux, because we try to
gsi_insert_on_edge_immediate a statement on an edge which already has
statements queued with gsi_insert_on_edge, and the deferral has been
intentional so that we don't need to deal with cfg changes in between.
The following patch uses the delayed insertion as well.
2024-07-17 Jakub Jelinek <jakub@redhat.com>
PR middle-end/115887
* gimple-lower-bitint.cc (gimple_lower_bitint): Use
gsi_insert_on_edge
instead of gsi_insert_on_edge_immediate and set edge_insertions to
true.
* gcc.dg/bitint-108.c: New test.
(cherry picked from commit 5104fe4c7808a66ed3041a8da8e4720585cc8a1f)
More information about the Gcc-bugs
mailing list