[Bug target/23485] [ia64]: Integer dvide by zero doesn't raise a signal

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Aug 19 18:32:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list