------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-19 18:26 ------- I don't see why this is a bug really as on some targets (PPC) divide by zero does not raise any thing and the result is undefined.
You might want to test your patch's performance as it could cause a lot of problems if someone does a loop with divides in them and it checks all the time for divide by zero which an extra branch every time which is bad. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23485