Subject: bug#53509: Compilation failure of 27.2 on ppc64le

From: Scott Talbert <[email-masked]>
Date: Mon, 24 Jan 2022 19:21:31 -0500 (EST)

On Mon, 24 Jan 2022, Eli Zaretskii wrote:

>> Date: Mon, 24 Jan 2022 12:11:23 -0500 (EST)
>> From: Scott Talbert <[email-masked]>
>>
>> On Fedora, we're seeing a compile error when compiling 27.2 on ppc64le
>> architecture.  Log excerpt below, full log at [1]:
>>
>>    CC       regex.o
>> In file included from /usr/include/stdio.h:899,
>>                   from ./stdio.h:43,
>>                   from ../../lib/regex_internal.h:24,
>>                   from ../../lib/regex.c:68:
>> /usr/include/bits/stdio-ldbl.h: In function '__LDBL_REDIR1_DECL':
>> /usr/include/bits/stdio-ldbl.h:36:1: error: expected declaration
>> specifiers before '__LDBL_REDIR1_DECL'
>>     36 | __LDBL_REDIR1_DECL (scanf, __isoc99_scanfieee128)
>>        | ^~~~~~~~~~~~~~~~~~
>> In file included from /usr/include/features.h:488,
>>                   from /usr/include/errno.h:25,
>>                   from ../../lib/libc-config.h:39,
>>                   from ../../lib/regex.c:21:
>> /usr/include/bits/stdio-ldbl.h:86:1: error: storage class specified for
>> parameter '__sprintf_chk'
>
> Is it possible for you to try the latest pretest of Emacs 28?  It's
> here:
>
>  https://alpha.gnu.org/gnu/emacs/pretest/emacs-28.0.91.tar.xz
>
> We don't plan on making any further releases of the v27.x series.

Yep, 28.0.91 appears to build fine on ppc64le with GCC 12.  Any idea what 
commit fixed it, or do I need to bisect?  :)

Thanks,
Scott