https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- So let's guard the optimization on !flag_non_call_exceptions or so? The libgcc2.c if (d0 == 0) d0 = 1 / d0; /* Divide intentionally by zero. */ cases IMHO just should hide it from the optimizers.