summaryrefslogtreecommitdiff
path: root/libjava/classpath/java/util/BitSet.java
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2025-11-21 11:25:27 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2025-11-21 11:25:27 +0100
commit3012aad2dc6318ab490c4a2511f5b2e4d30652b9 (patch)
tree0d822a7212891be37e9e122bb2daa92e9c62b8cd /libjava/classpath/java/util/BitSet.java
parentc435bbdd22a7fc2d18129f261fd2050e72f98411 (diff)
gimplify: Fix ICE in collect_fallthrough_labels [PR122773]
In r16-4212 I had to tweak two spots in the gimplifier to ignore gotos jumping to labels with the new VACUOUS_INIT_LABEL_P flag (set by C++ FE when implementing goto/case interceptors with extra .DEFERRED_INIT calls, so that jumps over vacuous initialization are handled properly with the C++26 erroneous behavior requirements). Except as the following testcase shows, the checks blindly assumed that gimple_goto_dest operand is a LABEL_DECL, which is not the case for computed jumps. The following patch checks that gimple_goto_dest argument is a LABEL_DECL before testing VACUOUS_INIT_LABEL_P flag on it. 2025-11-21 Jakub Jelinek <jakub@redhat.com> PR middle-end/122773 * gimplify.cc (collect_fallthrough_labels): Check whether gimple_goto_dest is a LABEL_DECL before testing VACUOUS_INIT_LABEL_P. (expand_FALLTHROUGH_r): Likewise. * gcc.dg/pr122773.c: New test.
Diffstat (limited to 'libjava/classpath/java/util/BitSet.java')
0 files changed, 0 insertions, 0 deletions