This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGa50e54fbeb48: [CUDA] Temporarily undefine __noinline__ when including bits/shared_ptr_base.h (authored by tra).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D149364/new/ https://reviews.llvm.org/D149364 Files: clang/lib/Headers/CMakeLists.txt clang/lib/Headers/cuda_wrappers/bits/shared_ptr_base.h Index: clang/lib/Headers/cuda_wrappers/bits/shared_ptr_base.h =================================================================== --- /dev/null +++ clang/lib/Headers/cuda_wrappers/bits/shared_ptr_base.h @@ -0,0 +1,9 @@ +// CUDA headers define __noinline__ which interferes with libstdc++'s use of +// `__attribute((__noinline__))`. In order to avoid compilation error, +// temporarily unset __noinline__ when we include affected libstdc++ header. + +#pragma push_macro("__noinline__") +#undef __noinline__ +#include_next "bits/shared_ptr_base.h" + +#pragma pop_macro("__noinline__") Index: clang/lib/Headers/CMakeLists.txt =================================================================== --- clang/lib/Headers/CMakeLists.txt +++ clang/lib/Headers/CMakeLists.txt @@ -262,6 +262,7 @@ cuda_wrappers/cmath cuda_wrappers/complex cuda_wrappers/new + cuda_wrappers/bits/shared_ptr_base.h ) set(ppc_wrapper_files
Index: clang/lib/Headers/cuda_wrappers/bits/shared_ptr_base.h =================================================================== --- /dev/null +++ clang/lib/Headers/cuda_wrappers/bits/shared_ptr_base.h @@ -0,0 +1,9 @@ +// CUDA headers define __noinline__ which interferes with libstdc++'s use of +// `__attribute((__noinline__))`. In order to avoid compilation error, +// temporarily unset __noinline__ when we include affected libstdc++ header. + +#pragma push_macro("__noinline__") +#undef __noinline__ +#include_next "bits/shared_ptr_base.h" + +#pragma pop_macro("__noinline__") Index: clang/lib/Headers/CMakeLists.txt =================================================================== --- clang/lib/Headers/CMakeLists.txt +++ clang/lib/Headers/CMakeLists.txt @@ -262,6 +262,7 @@ cuda_wrappers/cmath cuda_wrappers/complex cuda_wrappers/new + cuda_wrappers/bits/shared_ptr_base.h ) set(ppc_wrapper_files
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits