summaryrefslogtreecommitdiff
path: root/Python/pyfpe.c
diff options
context:
space:
mode:
authorNathaniel J. Smith <njs@pobox.com>2018-01-05 23:15:34 -0800
committerBenjamin Peterson <benjamin@python.org>2018-01-05 23:15:34 -0800
commit735ae8d139a673b30b321dc10acfd3d14f0d633b (patch)
tree027e039ce309a5617d15cdf7f2ef8a1f711fcaaa /Python/pyfpe.c
parent502d551c6d782963d26957a9e5ff1588946f233f (diff)
downloadcpython-git-735ae8d139a673b30b321dc10acfd3d14f0d633b.tar.gz
bpo-29137: Remove fpectl module (#4789)
This module has never been enabled by default, never worked correctly on x86-64, and caused ABI problems that caused C extension compatibility. See bpo-29137 for details/discussion.
Diffstat (limited to 'Python/pyfpe.c')
-rw-r--r--Python/pyfpe.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/Python/pyfpe.c b/Python/pyfpe.c
index 925fa4654d..31ef5d73b7 100644
--- a/Python/pyfpe.c
+++ b/Python/pyfpe.c
@@ -1,20 +1,12 @@
-#include "pyconfig.h"
-#include "pyfpe.h"
-/*
- * The signal handler for SIGFPE is actually declared in an external
- * module fpectl, or as preferred by the user. These variable
- * definitions are required in order to compile Python without
- * getting missing externals, but to actually handle SIGFPE requires
- * defining a handler and enabling generation of SIGFPE.
+/* These variables used to be used when Python was built with --with-fpectl,
+ * but support for that was dropped in 3.7. We continue to define them,
+ * though, because they may be referenced by extensions using the stable ABI.
*/
-#ifdef WANT_SIGFPE_HANDLER
-jmp_buf PyFPE_jbuf;
-int PyFPE_counter = 0;
-#endif
+#include "setjmp.h"
-/* Have this outside the above #ifdef, since some picky ANSI compilers issue a
- warning when compiling an empty file. */
+jmp_buf PyFPE_jbuf;
+int PyFPE_counter;
double
PyFPE_dummy(void *dummy)