https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120951
Bug ID: 120951
Summary: error: gimple cond condition cannot throw
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 61799
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61799&action=edit
C source code
The attached code does this with recent gcc:
foundBugs $ ~/gcc/results/bin/gcc -c -O1 -fnon-call-exceptions
-fsignaling-nans bug1107.c
floatobj.c: In function ‘calc2_double’:
floatobj.c:315:53: error: gimple cond condition cannot throw
if (r_48 == r_48)
during GIMPLE pass: cdce
floatobj.c:315:53: internal compiler error: verify_gimple failed
foundBugs $ ~/gcc/results/bin/gcc -c -O1 -fnon-call-exceptions bug1107.c
foundBugs $ ~/gcc/results/bin/gcc -c -O1 -fsignaling-nans bug1107.c
foundBugs $ ~/gcc/results/bin/gcc -c -fsignaling-nans -fnon-call-exceptions
bug1107.c
foundBugs $