diff options
| author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-02-07 14:50:36 +0530 |
|---|---|---|
| committer | Michael Orlitzky <mjo@gentoo.org> | 2024-02-07 19:29:19 -0500 |
| commit | 41aa2e2135771de335e4487e8e4363b1e75f6aec (patch) | |
| tree | 0968a551cd36147684f44c2e1a17d1f8a4b15b9f /dev-lang/php/files/php-8.2.15-gcc14-build-fix.patch | |
| parent | 13ff8a22f25dcc7de84b4c7064ac3c7c162c08a4 (diff) | |
| download | gentoo-41aa2e2135771de335e4487e8e4363b1e75f6aec.tar.gz gentoo-41aa2e2135771de335e4487e8e4363b1e75f6aec.tar.bz2 gentoo-41aa2e2135771de335e4487e8e4363b1e75f6aec.zip | |
dev-lang/php: Fix implicit declaration of function '__c11_atomic_load'
This is observed with GCC14 and upstream commit[0] fixing the bug is
merged only in RC branches.
[0]: https://github.com/php/php-src/commit/72526609413e8a8cd768ed4966c17b1a9db6c12c.patch
Closes: https://bugs.gentoo.org/919003
Closes: https://github.com/gentoo/gentoo/pull/35210
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'dev-lang/php/files/php-8.2.15-gcc14-build-fix.patch')
| -rw-r--r-- | dev-lang/php/files/php-8.2.15-gcc14-build-fix.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-lang/php/files/php-8.2.15-gcc14-build-fix.patch b/dev-lang/php/files/php-8.2.15-gcc14-build-fix.patch new file mode 100644 index 000000000000..5f21f442ee06 --- /dev/null +++ b/dev-lang/php/files/php-8.2.15-gcc14-build-fix.patch @@ -0,0 +1,16 @@ +https://github.com/php/php-src/commit/72526609413e8a8cd768ed4966c17b1a9db6c12c.patch +From: Remi Collet <remi@remirepo.net> +Date: Mon, 22 Jan 2024 10:01:25 +0100 +Subject: [PATCH] Fix GH-13215 GCC 14 build + +--- a/Zend/zend_atomic.h ++++ b/Zend/zend_atomic.h +@@ -23,7 +23,7 @@ + ((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) || (__GNUC__ > (x))) + + /* Builtins are used to avoid library linkage */ +-#if __has_feature(c_atomic) ++#if __has_feature(c_atomic) && defined(__clang__) + #define HAVE_C11_ATOMICS 1 + #elif ZEND_GCC_PREREQ(4, 7) + #define HAVE_GNUC_ATOMICS 1 |
