[Bug tree-optimization/104356] [12 Regression] divide by zero trap is being removed now when it should not be in some cases

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 3 07:58:49 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> The Java front-end used to have option which caused the front-end to emit
> the throw/trap for the division by zero which was turned off for a few
> targets (I can't remember if it was a hook or hard coded).

So I looked and it looks like I was wrong about the (old) java front-end, it
defaulted to always calling the function to do the divison and just throw in
those functions.


More information about the Gcc-bugs mailing list