aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRainer Orth <ro@gcc.gnu.org>2025-05-06 09:13:05 +0200
committerGitHub <noreply@github.com>2025-05-06 09:13:05 +0200
commitc24b9ca3da1a36c78652f5c2e046a91af1b63aed (patch)
treeb815bedade120e6cc2686e3b5cee72a30d15354b /flang/lib/Frontend/CompilerInvocation.cpp
parent30ec488716263200f7e6004c4670c77f6ec9fab9 (diff)
downloadllvm-c24b9ca3da1a36c78652f5c2e046a91af1b63aed.zip
llvm-c24b9ca3da1a36c78652f5c2e046a91af1b63aed.tar.gz
llvm-c24b9ca3da1a36c78652f5c2e046a91af1b63aed.tar.bz2
[OpenMP] Provide __kmp_unnamed_critical_addr on SPARC (#138517)
`libomp.so` currently fails to link on SPARC, both Solaris/sparcv9 and Linux/sparc64: ``` Undefined first referenced symbol in file __kmp_unnamed_critical_addr projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o ld: fatal: symbol referencing errors ``` This patch provides the necessary definition. While at it, I noticed that on non-x86 targets the symbol wasn't marked as `@object`, which this patch corrects, too. Tested on `sparcv9-sun-solaris2.11`, `sparc64-unknown-linux-gnu`, `amd64-pc-solaris2.11`, and `x86_64-pc-linux-gnu`.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions