[php-src] PR #11321: Fix GCC 12 compilation on riscv64
| From: | danog | Date: | Thu, 25 May 2023 18:43:46 +0000 |
| Subject: | [php-src] PR #11321: Fix GCC 12 compilation on riscv64 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22594@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11321
Author: danog
Fixes
undefined reference to __atomic_exchange_1'` errors when compiling on
riscv64 with GCC 12.
Newer versions of GCC should inline these atomics
(https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg283700.html), this PR fixes compilations on
slightly older versions of GCC, like the one distributed on Debian 12 (currently GCC 12.2).