Subject: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation

From: Eli Zaretskii <[email-masked]>
Date: Thu, 08 Jun 2023 16:19:53 +0300

> From: Arash Esbati <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Thu, 08 Jun 2023 12:21:11 +0200
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Did you say that the problem goes away if you configure without
> > native-compilation?
> 
> Yes, no problems when --without-native-compilation is passed to
> configure.
> 
> > If so, let's wait for Andrea to fix the problems with that on master,
> > and try again.
> 
> I tried the latest master (a902156068), and the issue remains.
> 
> > Or did you also see similar problems on the emacs-29 branch?
> 
> Yes, issue remains with 0eba9cf651.

Andrea, can you suggest some ideas for what to try/test, or
alternatively how to prepare a concise test/reproducer for the GCC
folks?  AFAIU, GCC 13.1 does work on GNU/Linux to produce a working
Emacs with native-compilation, so this is probably Windows-specific.

Arash, are you building with that _FORTIFY_SOURCE option that was
discussed in bug#63752?  If so, please try without that (but still
with GCC 13.1).