[all-commits] [llvm/llvm-project] 30ec48: [OpenMP] Use pthread_self for __kmp_gettid on Sola...

Rainer Orth via All-commits all-commits at lists.llvm.org
Tue May 6 00:12:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 30ec488716263200f7e6004c4670c77f6ec9fab9
      https://github.com/llvm/llvm-project/commit/30ec488716263200f7e6004c4670c77f6ec9fab9
  Author: Rainer Orth <ro at gcc.gnu.org>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M openmp/runtime/src/kmp_wrapper_getpid.h

  Log Message:
  -----------
  [OpenMP] Use pthread_self for __kmp_gettid on Solaris (#138510)

Building `openmp` on Solaris/amd64, I get

```
In file included from openmp/runtime/src/kmp_utility.cpp:16:
openmp/runtime/src/kmp_wrapper_getpid.h:47:2: warning: No gettid found, use getpid instead [-W#warnings]
   47 | #warning No gettid found, use getpid instead
      |  ^

```

There's no reason to do this: Solaris can use `pthread_self` just as AIX
does.

Tested on `amd64-pc-solaris2.11` and `x86_64-pc-linux-gnu`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list