[Bug c/23109] compiler generates wrong code leading to spurious division by zero

2005-07-28 Thread p dot van-hoof at qub dot ac dot uk

--- Additional Comments From p dot van-hoof at qub dot ac dot uk  
2005-07-28 10:42 ---
Created an attachment (id=9377)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9377action=view)
code that causes the crash


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23109


[Bug c/23109] compiler generates wrong code leading to spurious division by zero

2005-07-28 Thread rguenth at gcc dot gnu dot org

--- Additional Comments From rguenth at gcc dot gnu dot org  2005-07-28 
14:47 ---
Indeed unsafe-math-optimization is not the only precondition for this
transformation.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-07-28 14:47:37
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23109


[Bug c/23109] compiler generates wrong code leading to spurious division by zero

2005-07-28 Thread rguenth at gcc dot gnu dot org

--- Additional Comments From rguenth at gcc dot gnu dot org  2005-07-28 
15:01 ---
I have a patch.

-- 
   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED
   Last reconfirmed|2005-07-28 14:47:37 |2005-07-28 15:01:58
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23109