https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106075
Bug ID: 106075 Summary: Wrong DSE with -fnon-call-exceptions Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hubicka at gcc dot gnu.org Target Milestone: --- In the following testcase: int a = 1; short *b; void test() { a=12345; *b=0; a=1; } we should not optimize out a=12345 when compiling with -fnon-call-exceptions. The store to b may throw and thus the store is live.