-
Notifications
You must be signed in to change notification settings - Fork 12.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Clang][OpenMP] Weak alias fails on OpenMP targets #117369
Comments
@llvm/issue-subscribers-clang-codegen Author: None (Jason-VanBeusekom)
Reproducer test file:
```
int __One(void) { return 1; }
int One(void) attribute ((weak, alias("__One"))); int main(){
clang -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa test.c
#0 0x00007fe39a249c1d llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /ptmp2/vanbeuse-ptmp2/llvm-project/llvm/lib/Support/Unix/Signals.inc:723:11
|
Godbolt compilation for NVIDIA and AMD targets: https://godbolt.org/z/1rjf6KKrc |
Reproducer test file:
When compiling:
The text was updated successfully, but these errors were encountered: