On 19/01/2026 14:22, Pádraig Brady wrote:
Commit ff7c8b21 (2021) to pacify -Wsuggest-attribute=pure with GCC 10.3 induces the code to be removed with clang 21,22 with -fno-inline. I don't see the same code elimination on GCC 15, but the the incorrect warning is still there. (Note xalloc_die() is marked _Noreturn so GCC is wrong here).
Actually this case is already reported at: https://gcc.gnu.org/PR115237 I updated the commit message with that bug number and pushed. I also updated that GCC bug report, detailing how this can induce a bug. cheers, Padraig
