diff options
author | Pjotr Prins | 2018-08-26 07:15:58 +0000 |
---|---|---|
committer | Pjotr Prins | 2018-08-26 07:15:58 +0000 |
commit | de52274064b78c5020f7e1edf4b023fa986b68e0 (patch) | |
tree | 21c9ec74d098e1470bc782a389aa07ef5eac7610 /src | |
parent | 4c74f1374e6e7a48a14724e61178953d08c571d4 (diff) | |
download | pangemma-de52274064b78c5020f7e1edf4b023fa986b68e0.tar.gz |
debug: feenableexcept can be disabled using legacy mode
Diffstat (limited to 'src')
-rw-r--r-- | src/debug.cpp | 2 |
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); |