Skip to content

Commit ea1b1c5

Browse files
authored
gh-108562: Revert enabling -fstrict-overflow for libmpdec (GH-116302)
gh-108562: partial reversion of pr114751 Reverts -fstrict-overflow for libmpdec
1 parent 9b9e819 commit ea1b1c5

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

Makefile.pre.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ PYTHON_HEADERS= \
12131213

12141214
##########################################################################
12151215
# Build static libmpdec.a
1216-
LIBMPDEC_CFLAGS=$(PY_STDMODULE_CFLAGS) @LIBMPDEC_CFLAGS@ $(CCSHARED)
1216+
LIBMPDEC_CFLAGS=@LIBMPDEC_CFLAGS@ $(PY_STDMODULE_CFLAGS) $(CCSHARED)
12171217

12181218
# "%.o: %c" is not portable
12191219
Modules/_decimal/libmpdec/basearith.o: $(srcdir)/Modules/_decimal/libmpdec/basearith.c $(LIBMPDEC_HEADERS) $(PYTHON_HEADERS)

configure

-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

-5
Original file line numberDiff line numberDiff line change
@@ -3896,11 +3896,6 @@ AS_VAR_IF([with_system_libmpdec], [yes], [
38963896
LIBMPDEC_LDFLAGS="-lm \$(LIBMPDEC_A)"
38973897
LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
38983898
3899-
dnl Enable strict-overflow for libmpdec, if available, see GH-108562
3900-
AS_VAR_IF([ac_cv_cc_supports_fstrict_overflow], [yes], [
3901-
AS_VAR_APPEND([LIBMPDEC_CFLAGS], [" -fstrict-overflow"])
3902-
])
3903-
39043899
dnl Disable forced inlining in debug builds, see GH-94847
39053900
AS_VAR_IF([with_pydebug], [yes], [
39063901
AS_VAR_APPEND([LIBMPDEC_CFLAGS], [" -DTEST_COVERAGE"])

0 commit comments

Comments
 (0)