]> granicus.if.org Git - clang/commit
[OPENMP][NVPTX]Fix PR40893: Size doesn't match for
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 13 Mar 2019 18:21:10 +0000 (18:21 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 13 Mar 2019 18:21:10 +0000 (18:21 +0000)
commitd6626f448a2bcb40cc1a318971abdc98c9072ec2
treeb10e1033552e0908bbe592185b23b825ec97a517
parent82ec7d957feed5e1195f4a4adf979d0891ba75ab
[OPENMP][NVPTX]Fix PR40893: Size doesn't match for
'_openmp_teams_reductions_buffer_$_.

nvlink does not handle weak linkage correctly, same symbols with the
different sizes are reported as erroneous though the largest size must
be chosen instead. Patch fixes this problem by using Internal linkage
instead of the Common.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356072 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
test/OpenMP/nvptx_teams_reduction_codegen.cpp