aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/unix/sys_float.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-04-29 16:31:24 +0200
committerLukas Larsson <[email protected]>2016-04-29 16:31:24 +0200
commit370ff8e637efaae6f7c9ba3ab59caa6ab63450a7 (patch)
tree97bcc1d76c5de10932433b94c2c0f0e96e2a0a84 /erts/emulator/sys/unix/sys_float.c
parentab0fd9ea6c333d11fa03df1391e320077adc1907 (diff)
parent0127f930e6aa2abc95ec4a95c9d5638d7e9bd512 (diff)
downloadotp-370ff8e637efaae6f7c9ba3ab59caa6ab63450a7.tar.gz
otp-370ff8e637efaae6f7c9ba3ab59caa6ab63450a7.tar.bz2
otp-370ff8e637efaae6f7c9ba3ab59caa6ab63450a7.zip
Merge branch 'mikpe/fp-exceptions-neuter-matherr/PR-1018/OTP-13531'
* mikpe/fp-exceptions-neuter-matherr/PR-1018/OTP-13531: matherr() must not fake an FP exception
Diffstat (limited to 'erts/emulator/sys/unix/sys_float.c')
-rw-r--r--erts/emulator/sys/unix/sys_float.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/erts/emulator/sys/unix/sys_float.c b/erts/emulator/sys/unix/sys_float.c
index 60661d9016..9d2b25a787 100644
--- a/erts/emulator/sys/unix/sys_float.c
+++ b/erts/emulator/sys/unix/sys_float.c
@@ -818,11 +818,6 @@ sys_chars_to_double(char* buf, double* fp)
int
matherr(struct exception *exc)
{
-#if !defined(NO_FPE_SIGNALS)
- volatile unsigned long *fpexnp = erts_get_current_fp_exception();
- if (fpexnp != NULL)
- *fpexnp = (unsigned long)__builtin_return_address(0);
-#endif
return 1;
}