Commit 4a919b1b authored by Mattias Engdegård's avatar Mattias Engdegård

* src/floatfns.c: Check against __FINITE_MATH_ONLY__ (bug#37140)

parent d09a1d66
Pipeline #3012 passed with stage
in 53 minutes and 53 seconds
......@@ -48,6 +48,14 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include <count-leading-zeros.h>
/* Emacs needs proper handling of ±inf; correct printing as well as
important packages depend on it. Make sure the user didn't specify
-ffinite-math-only, either directly or implicitly with -Ofast or
-ffast-math. */
#if defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__
#error Emacs cannot be built with -ffinite-math-only
#endif
/* Check that X is a floating point number. */
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment