]> git.ipfire.org Git - thirdparty/gcc.git/commit
Do not trap on a stmt with no basic block.
authorAndrew MacLeod <amacleod@redhat.com>
Mon, 19 Jan 2026 18:44:25 +0000 (13:44 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Tue, 20 Jan 2026 19:22:54 +0000 (14:22 -0500)
commit4ac080e384cd30d37fac069d791b813100e6524a
tree6d08811cece3e451d92e2a78be0ab2bf0f7710a6
parent869df297c7e09b791d655dd084c3095c9d30ef3b
Do not trap on a stmt with no basic block.

WHen calculating ranges for statements not in the IL, avoid looking for
range on entry values.

PR tree-optimization/123314
gcc/
* gimple-range.cc (gimple_ranger::range_on_entry): Do not check
ranger cache for an SSA_NAME with no BB.
(gimple_ranger::prefill_stmt_dependencies): Stop filling
dependencies when an out-of IL name is encountered.

gcc/testsuite/
* gcc.dg/pr123314.c: New.
gcc/gimple-range.cc
gcc/testsuite/gcc.dg/pr123314.c [new file with mode: 0644]