]> git.eshelyaron.com Git - emacs.git/commit
Port better to x86 -fexcess-precision=fast
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 12 Aug 2018 22:28:20 +0000 (15:28 -0700)
committerEli Zaretskii <eliz@gnu.org>
Mon, 13 Aug 2018 17:16:56 +0000 (20:16 +0300)
commitf882de8b8095c3a42d1f6d22ed3f7aed57e9f5e0
tree8772cc7b163793b0d9132a1ce00e21dc7c24d341
parent34e75c144efe54dd6063fbb65d5a40176952422c
Port better to x86 -fexcess-precision=fast

Problem reported by Eli Zaretskii in:
https://lists.gnu.org/r/emacs-devel/2018-08/msg00380.html
* src/data.c (arithcompare): Work around incompatibility
between gcc -fexcess-precision=fast and the C standard on x86,
by capturing the results of floating-point comparisons before
the excess precision spontaneously decays.  Although this fix
might not work in general, it does work here and is probably
good enough for the platforms we care about.

(cherry picked from commit a84cef90957f2379cc0df6bd908317fc441971ce)
src/data.c