[Bug 271992] backport fix for LLVM bug 61396

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 14 Jun 2023 12:36:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271992

            Bug ID: 271992
           Summary: backport fix for LLVM bug 61396
           Product: Base System
           Version: CURRENT
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: jfc@mit.edu

Created attachment 242772
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=242772&action=edit
backport of LLVM commit 962c306a11d0a21c884c12e18825b8a41ba1bd7d

LLVM 15 and 16 have a codegen bug that causes gcc to be miscompiled on 32 bit
ARM.  See LLVM issue 61255 reported by Mark Millard, which turned out to have
the same root cause as issue 61396.  This is fixed in llvm-devel but not in any
release.

With the attached diff to the FreeBSD copy of llvm-project I am able to build
lang/gcc11, gcc12, gcc13, and gcc-devel in an armv7 jail.  Without the fix the
ports builds hang because gcc built by llvm goes into an infinite loop.


References:

https://github.com/llvm/llvm-project/issues/61255
https://github.com/llvm/llvm-project/commit/962c306a11d0a21c884c12e18825b8a41ba1bd7d

-- 
You are receiving this mail because:
You are the assignee for the bug.