[all-commits] [llvm/llvm-project] 13fc17: Force GHashCell to be 8-byte-aligned.

Eli Friedman via All-commits all-commits at lists.llvm.org
Mon Apr 18 08:49:12 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 13fc1781735a327699d9522e8e44899acf92a61a
      https://github.com/llvm/llvm-project/commit/13fc1781735a327699d9522e8e44899acf92a61a
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2022-04-18 (Mon, 18 Apr 2022)

  Changed paths:
    M lld/COFF/DebugTypes.cpp

  Log Message:
  -----------
  Force GHashCell to be 8-byte-aligned.

Otherwise, with recent versions of libstdc++, clang can't tell that the
atomic operations are properly aligned, and generates calls to
libatomic.  (Actually, because of the use of reinterpret_cast, it wasn't
guaranteed to be aligned, but I think it ended up being aligned in
practice.)

Fixes https://github.com/llvm/llvm-project/issues/54790 , the part where
LLVM failed to build.

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




More information about the All-commits mailing list