Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 2023 18:28:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271047] [exp-run] Against llvm-16-update branch on GitHub
Message-ID:  <bug-271047-7788-bGPMCRzXHq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271047-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271047-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271047

--- Comment #97 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D3ea609f7d794675ff74194a36125a1201=
dabc8fb

commit 3ea609f7d794675ff74194a36125a1201dabc8fb
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-07-23 11:01:42 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-07-23 17:38:13 +0000

    Merge commit 2b0f5df7b4e0 from llvm-project (by Jessica Clarke):

      [builtins][Mips] Un-break FreeBSD build of __clear_cache

      Commit 674a17e9bbe8 ("MIPS/compiler_rt: use synci to flush icache on
      r6") completely removed the OS-specific guards under the guise of "For
      pre-r6, we can use cacheflush libc function, which is same on Linux a=
nd
      FreeBSD." However, the code in question had guards for Linux and
      OpenBSD, not Linux and FreeBSD, and FreeBSD does not have a cacheflush
      libc function as claimed, so this was neither the statement they
      intended to make nor was it sufficient justification for making the c=
ode
      completely unconditional. Whilst the upcoming FreeBSD 14 release has
      dropped support for MIPS, FreeBSD 13 has support for it.

      Fix this by only calling cacheflush on the OSes where it was previous=
ly
      called, and not on other OSes where it either definitely isn't availa=
ble
      (FreeBSD) or is unknown (any other OS than the three mentioned in this
      commit).

    This is only needed for MFC'ing, as mips has been removed from
    14-CURRENT.

    PR:             271047
    MFC after:      immediately

    (cherry picked from commit b8f1c9dd9b3dd9b91e6999b28ab941a2af142702)

 contrib/llvm-project/compiler-rt/lib/builtins/clear_cache.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271047-7788-bGPMCRzXHq>