]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r368489:
authorDimitry Andric <dim@FreeBSD.org>
Sat, 12 Dec 2020 23:59:05 +0000 (23:59 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Sat, 12 Dec 2020 23:59:05 +0000 (23:59 +0000)
commitd78730c876d524117dd174a3a79564dea752ba96
tree8ecf5c013c940560ec92ac14d602ceb168387797
parentf4572ff3b8b0573c1b415be616304c065de1165e
MFC r368489:

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
contrib/llvm-project/clang/lib/Basic/Targets/RISCV.cpp