On Mon, Jan 31, 2022 at 12:17 AM Eric Botcazou via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > > Unfortunately this breaks quite a lot of things. > > Right, for example in Ada where we now happily turn a division by zero, which > should raise an exception with -gnatp, into nonsense. Do we really need this > rather useless optimization in GCC? Blindly mimicing LLVM is not a reason...
Since I didn't see anyone responding to this problem, I filed PR 104356 to record the regression. And yes this should be handled correctly. Thanks, Andrew Pinski > > I have installed the attached testcase, which now fails because of the change. > > * gnat.dg/div_zero.adb: New test. > > -- > Eric Botcazou