]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45548: Remove _math.c workarounds for pre-C99 libm (GH-29179)
authorChristian Heimes <christian@python.org>
Mon, 25 Oct 2021 08:25:27 +0000 (11:25 +0300)
committerGitHub <noreply@github.com>
Mon, 25 Oct 2021 08:25:27 +0000 (01:25 -0700)
commitfa26245a1c1aa938cce391348d6bd879da357522
treeb193ebf766f3105a880ce8d8f7160b090b0c77b2
parent51ed2c56a1852cd6b09c85ba81312dc9782772ce
bpo-45548: Remove _math.c workarounds for pre-C99 libm (GH-29179)

The :mod:`math` and :mod:`cmath` implementation now require a C99 compatible
``libm`` and no longer ship with workarounds for missing acosh, asinh,
expm1, and log1p functions.

The changeset also removes ``_math.c`` and moves the last remaining
workaround into ``_math.h``. This simplifies static builds with
``Modules/Setup`` and resolves symbol conflicts.

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
Co-authored-by: Brett Cannon <brett@python.org>
Signed-off-by: Christian Heimes <christian@python.org>
12 files changed:
Makefile.pre.in
Misc/NEWS.d/next/Build/2021-10-24-21-49-49.bpo-45548.UWx0UC.rst [new file with mode: 0644]
Modules/Setup
Modules/_math.c [deleted file]
Modules/_math.h
Modules/cmathmodule.c
Modules/mathmodule.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
configure
configure.ac
setup.py