summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey B Kirpichev <skirpichev@gmail.com>2024-03-04 17:07:24 (GMT)
committerGitHub <noreply@github.com>2024-03-04 17:07:24 (GMT)
commitea1b1c579f600cc85d145c60862b2e6b98701b24 (patch)
tree4b2a1fecc2bd583fefc684ef4b5827d43f04db40
parent9b9e819b5116302cb4e471763feb2764eb17dde8 (diff)
downloadcpython-ea1b1c579f600cc85d145c60862b2e6b98701b24.zip
cpython-ea1b1c579f600cc85d145c60862b2e6b98701b24.tar.gz
cpython-ea1b1c579f600cc85d145c60862b2e6b98701b24.tar.bz2
gh-108562: Revert enabling -fstrict-overflow for libmpdec (GH-116302)
gh-108562: partial reversion of pr114751 Reverts -fstrict-overflow for libmpdec
-rw-r--r--Makefile.pre.in2
-rwxr-xr-xconfigure7
-rw-r--r--configure.ac5
3 files changed, 1 insertions, 13 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 396a3d4..ee65ecd 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1213,7 +1213,7 @@ PYTHON_HEADERS= \
##########################################################################
# Build static libmpdec.a
-LIBMPDEC_CFLAGS=$(PY_STDMODULE_CFLAGS) @LIBMPDEC_CFLAGS@ $(CCSHARED)
+LIBMPDEC_CFLAGS=@LIBMPDEC_CFLAGS@ $(PY_STDMODULE_CFLAGS) $(CCSHARED)
# "%.o: %c" is not portable
Modules/_decimal/libmpdec/basearith.o: $(srcdir)/Modules/_decimal/libmpdec/basearith.c $(LIBMPDEC_HEADERS) $(PYTHON_HEADERS)
diff --git a/configure b/configure
index c061413..4a980fe 100755
--- a/configure
+++ b/configure
@@ -14516,13 +14516,6 @@ else $as_nop
LIBMPDEC_LDFLAGS="-lm \$(LIBMPDEC_A)"
LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
- if test "x$ac_cv_cc_supports_fstrict_overflow" = xyes
-then :
-
- as_fn_append LIBMPDEC_CFLAGS " -fstrict-overflow"
-
-fi
-
if test "x$with_pydebug" = xyes
then :
diff --git a/configure.ac b/configure.ac
index e40b8e0..103c249 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3896,11 +3896,6 @@ AS_VAR_IF([with_system_libmpdec], [yes], [
LIBMPDEC_LDFLAGS="-lm \$(LIBMPDEC_A)"
LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
- dnl Enable strict-overflow for libmpdec, if available, see GH-108562
- AS_VAR_IF([ac_cv_cc_supports_fstrict_overflow], [yes], [
- AS_VAR_APPEND([LIBMPDEC_CFLAGS], [" -fstrict-overflow"])
- ])
-
dnl Disable forced inlining in debug builds, see GH-94847
AS_VAR_IF([with_pydebug], [yes], [
AS_VAR_APPEND([LIBMPDEC_CFLAGS], [" -DTEST_COVERAGE"])