diff options
author | Rainer Orth <ro@gcc.gnu.org> | 2025-05-06 09:11:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-06 09:11:43 +0200 |
commit | d83983999d975357ada46d482c29b83fac41b90c (patch) | |
tree | 66b13d37491ce4b823551c657d02b3f9366de540 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | ca59a2b86811cbe3ef993ca9b55f6d03a1effcf3 (diff) | |
download | llvm-d83983999d975357ada46d482c29b83fac41b90c.zip llvm-d83983999d975357ada46d482c29b83fac41b90c.tar.gz llvm-d83983999d975357ada46d482c29b83fac41b90c.tar.bz2 |
[OpenMP] Use TLS for gtid on Solaris (#138508)
When running the `openmp` testsuite on Solaris/amd64, many tests `FAIL`
like
```
# | OMP: Error #11: Stack overflow detected for OpenMP thread #1
```
In a `Debug` build, I also get
```
# | Assertion failure at kmp_runtime.cpp(203): __kmp_gtid_get_specific() < 0 || __kmp_gtid_get_specific() == i.
```
Further investigation shows that just setting `__kmp_gtid_mode` to 3
massively reduces the number of failures.
Tested on `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