maintainer-approval requested: [Bug 263271] lang/gcc11: After switching to LTO bootstrap, build of editors/emacs-devel fails with segmentation fault if NATIVECOMP option enabled : [Attachment 233223] Patch file

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 14 Apr 2022 18:36:29 UTC
Yasuhiro Kimura <yasu@freebsd.org> has asked freebsd-toolchain (Nobody)
<toolchain@FreeBSD.org> for maintainer-approval:
Bug 263271: lang/gcc11: After switching to LTO bootstrap, build of
editors/emacs-devel fails with segmentation fault if NATIVECOMP option enabled
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263271

Attachment 233223: Patch file
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=233223&action=edit



--- Comment #1 from Yasuhiro Kimura <yasu@freebsd.org> ---
Created attachment 233223
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=233223&action=edit
Patch file

Add upstream patch to fix bug of libgccgit.

I found the build failure is already reported in bug tracker of Emacs.

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51688

According to it the cause of the problem is bug of libgccjit. So add upstream
patch to fix it.