[all-commits] [llvm/llvm-project] 9a75c0: [CUDA] Work around compatibility issue with libst...

Artem Belevich via All-commits all-commits at lists.llvm.org
Mon May 24 11:07:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a75c06cd9d94d3fd13c47a01044da97b98cf26b
      https://github.com/llvm/llvm-project/commit/9a75c06cd9d94d3fd13c47a01044da97b98cf26b
  Author: Artem Belevich <tra at google.com>
  Date:   2021-05-24 (Mon, 24 May 2021)

  Changed paths:
    M clang/lib/Headers/cuda_wrappers/complex

  Log Message:
  -----------
  [CUDA]  Work around compatibility issue with libstdc++ 11.1.0

libstdc++ redeclares __failed_assertion multiple times and that results in the
function declared with conflicting set of attributes when we include <complex>
with __host__ __device__ attributes force-applied to all functions.

In order to work around the issue, we rename __failed_assertion within the
region with forced attributes.

See https://bugs.llvm.org/show_bug.cgi?id=50383 for the details.

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




More information about the All-commits mailing list