From de52274064b78c5020f7e1edf4b023fa986b68e0 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 26 Aug 2018 07:15:58 +0000 Subject: debug: feenableexcept can be disabled using legacy mode --- src/debug.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/debug.cpp') diff --git a/src/debug.cpp b/src/debug.cpp index c998ffe..7728d92 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -128,6 +128,7 @@ inline int fedisableexcept(unsigned int excepts) #endif void enable_segfpe() { + if (is_legacy_mode()) return; #ifdef __GNUC__ #if defined(__x86_64__) debug_msg("enable segfpe hardware floating point error detection"); @@ -138,6 +139,7 @@ void enable_segfpe() { } void disable_segfpe() { + if (is_legacy_mode()) return; #ifdef __GNUC__ #if defined(__x86_64__) fedisableexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW); -- cgit v1.2.3