[Bug c/39128] GPC polygon clipping library fails with -O2
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Feb 8 10:25:00 GMT 2009
------- Comment #5 from rguenth at gcc dot gnu dot org 2009-02-08 10:25 -------
>From the comments I suggest the code does floating point equality compares,
which is a dangerous thing to do if you are not knowing what you do. A fix
is to instead of x == y use fabs(x - y) <= epsilon.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|gcc (GCC) 4.4.0 20090130 |
|(experimental) |
GCC host triplet|Linux linux 2.6.11.4-21.17- |
|smp #1 SMP Fri Apr 6 |
|08:42:34 UTC 200 |
GCC target triplet|gcc (GCC) 4.4.0 20090130 |
|(experimental) |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39128
More information about the Gcc-bugs
mailing list