[llvm-bugs] [Bug 38710] New: static functions are not emitted as implicitly 'declare target'
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Aug 26 11:06:49 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38710
Bug ID: 38710
Summary: static functions are not emitted as implicitly
'declare target'
Product: OpenMP
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Clang Compiler Support
Assignee: unassignedclangbugs at nondot.org
Reporter: hahnjo at hahnjo.de
CC: llvm-bugs at lists.llvm.org
$ clang -fopenmp -fopenmp-targets=nvptx64-nvidia-cuda target-implicit-static.c
nvlink error : Undefined reference to 'implicit' in
'<<<>>>/target-implicit-static-ddf1bd.cubin'
clang-7: error: nvlink command failed with exit code 255 (use -v to see
invocation)
$ cat target-implicit-static.c
static void implicit() { }
int main()
{
#pragma omp target
{
implicit();
}
return 0;
}
Removing the static keyword "fixes" compilation.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180826/e1bc48e1/attachment.html>
More information about the llvm-bugs
mailing list