]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Merge commit 28de0fb48 from llvm git (by Luís Marques):
authordim <dim@FreeBSD.org>
Wed, 9 Dec 2020 18:37:43 +0000 (18:37 +0000)
committerdim <dim@FreeBSD.org>
Wed, 9 Dec 2020 18:37:43 +0000 (18:37 +0000)
commit1a08ae3d8862045d7e61d2c6a02c7b8275d1b636
tree5ff44cdee9cbf921b0a2f94c04901a6c589e5e92
parent719f21ef450a81b803edd34561e18bf62087b5a6
Merge commit 28de0fb48 from llvm git (by Luís Marques):

  [RISCV] Set __GCC_HAVE_SYNC_COMPARE_AND_SWAP_x defines

  The RISCV target did not set the GCC atomic compare and swap defines,
  unlike other targets. This broke builds for things like glib on
  RISCV.

  Patch by Kristof Provost (kprovost)

  Differential Revision: https://reviews.llvm.org/D91784

This should fix building glib20 on RISC-V and unblock a number of
dependent ports.

Requested by: kp
MFC after: 3 days
contrib/llvm-project/clang/lib/Basic/Targets/RISCV.cpp