]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/109410 - ICE with noreturn and -g
authorRichard Biener <rguenther@suse.de>
Thu, 29 Jan 2026 14:43:01 +0000 (15:43 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 30 Jan 2026 06:59:04 +0000 (07:59 +0100)
commit4fe48225fa4e263b8d77d7a1465e1214d9cc742c
tree46fb46ef45cb43005aff140fe7eff826ad458e60
parent44a5be2f2d7abc040ad739ece58893933e6e525f
tree-optimization/109410 - ICE with noreturn and -g

This fixes the -g variant of the original testcase.

PR tree-optimization/109410
* tree-ssa-reassoc.cc (build_and_add_sum): Use
gsi_start_nondebug_after_labels_bb to look for a possible
returns-twice call.

* gcc.dg/pr109410-2.c: New testcase.
gcc/testsuite/gcc.dg/pr109410-2.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.cc