]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-91731: Build Python with -std=c11 (#91733)
authorVictor Stinner <vstinner@python.org>
Wed, 20 Apr 2022 11:19:05 +0000 (13:19 +0200)
committerGitHub <noreply@github.com>
Wed, 20 Apr 2022 11:19:05 +0000 (13:19 +0200)
Python is now built with "-std=c11" compiler option, rather than
"-std=c99".

Misc/NEWS.d/next/Build/2022-04-20-11-14-51.gh-issue-91731.zRoPcJ.rst [new file with mode: 0644]
configure
configure.ac

diff --git a/Misc/NEWS.d/next/Build/2022-04-20-11-14-51.gh-issue-91731.zRoPcJ.rst b/Misc/NEWS.d/next/Build/2022-04-20-11-14-51.gh-issue-91731.zRoPcJ.rst
new file mode 100644 (file)
index 0000000..92a1f52
--- /dev/null
@@ -0,0 +1,2 @@
+Python is now built with ``-std=c11`` compiler option, rather than
+``-std=c99``. Patch by Victor Stinner.
index 65495194f4935b90ec647032a899023cafa9bee3..94adc6fdf015e8cdab8981e5dc0891eccdd959db 100755 (executable)
--- a/configure
+++ b/configure
@@ -7871,7 +7871,7 @@ UNIVERSAL_ARCH_FLAGS=
 # tweak BASECFLAGS based on compiler and platform
 case $GCC in
 yes)
-    CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
+    CFLAGS_NODIST="$CFLAGS_NODIST -std=c11"
 
 
 
index 276718aeeb77a3c4e7de181c07440755611d04c6..9b60b98d1434e598e8d35388a8809acb3ee243ea 100644 (file)
@@ -1983,7 +1983,7 @@ AC_DEFUN([PY_CHECK_CC_WARNING], [
 # tweak BASECFLAGS based on compiler and platform
 case $GCC in
 yes)
-    CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
+    CFLAGS_NODIST="$CFLAGS_NODIST -std=c11"
 
     PY_CHECK_CC_WARNING([enable], [extra], [if we can add -Wextra])
     AS_VAR_IF([ac_cv_enable_extra_warning], [yes],