I think it is a good idea to open a PR for this. There is the problem description: http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00797.html
A kind of "fix" that shows that problem is related to FP compares: http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01027.html A comment from Richard Henderson: http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01087.html The proposed NaN trap didn't trigger, so there is no NaNs compared: http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01096.html This PR is not related to similar PR19496. -- Summary: PovRay produces wrong pictures with -mfpmath=sse -ffast- math. Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: wrong-code Severity: critical Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: uros at kss-loka dot si CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19506