From 735ae8d139a673b30b321dc10acfd3d14f0d633b Mon Sep 17 00:00:00 2001 From: "Nathaniel J. Smith" Date: Fri, 5 Jan 2018 23:15:34 -0800 Subject: 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. --- Python/pyfpe.c | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'Python/pyfpe.c') 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) -- cgit v1.2.1