aboutsummaryrefslogtreecommitdiff
path: root/src/debug.cpp
diff options
context:
space:
mode:
authorPjotr Prins2018-08-26 07:15:58 +0000
committerPjotr Prins2018-08-26 07:15:58 +0000
commitde52274064b78c5020f7e1edf4b023fa986b68e0 (patch)
tree21c9ec74d098e1470bc782a389aa07ef5eac7610 /src/debug.cpp
parent4c74f1374e6e7a48a14724e61178953d08c571d4 (diff)
downloadpangemma-de52274064b78c5020f7e1edf4b023fa986b68e0.tar.gz
debug: feenableexcept can be disabled using legacy mode
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp2
1 files changed, 2 insertions, 0 deletions
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);