mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Upgrade to 2022-era LLVM LIBCXX
This commit is contained in:
parent
2f4ca71f26
commit
8e68384e15
2078 changed files with 165657 additions and 65010 deletions
3
third_party/openmp/kmp_config.h
vendored
3
third_party/openmp/kmp_config.h
vendored
|
@ -11,6 +11,9 @@
|
|||
#ifndef KMP_CONFIG_H
|
||||
#define KMP_CONFIG_H
|
||||
|
||||
#pragma GCC diagnostic ignored "-Wvolatile" // wut
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion" // wut
|
||||
|
||||
#include "libc/dce.h"
|
||||
#include "kmp_platform.h"
|
||||
|
||||
|
|
6
third_party/openmp/kmp_lock.cpp
vendored
6
third_party/openmp/kmp_lock.cpp
vendored
|
@ -380,9 +380,9 @@ __kmp_acquire_futex_lock_timed_template(kmp_futex_lock_t *lck, kmp_int32 gtid) {
|
|||
|
||||
long rc;
|
||||
#ifdef __COSMOPOLITAN__
|
||||
if ((rc = nsync_futex_wait_(&(lck->lk.poll), poll_val, false, NULL)) != 0) {
|
||||
if ((rc = nsync_futex_wait_((_Atomic(int) *)&(lck->lk.poll), poll_val, false, NULL)) != 0) {
|
||||
#else
|
||||
if ((rc = syscall(__NR_futex, &(lck->lk.poll), FUTEX_WAIT, poll_val, NULL,
|
||||
if ((rc = syscall(__NR_futex, (_Atomic(int) *)&(lck->lk.poll), FUTEX_WAIT, poll_val, NULL,
|
||||
NULL, 0)) != 0) {
|
||||
#endif
|
||||
KA_TRACE(1000, ("__kmp_acquire_futex_lock: lck:%p, T#%d futex_wait(0x%x) "
|
||||
|
@ -462,7 +462,7 @@ int __kmp_release_futex_lock(kmp_futex_lock_t *lck, kmp_int32 gtid) {
|
|||
("__kmp_release_futex_lock: lck:%p, T#%d futex_wake 1 thread\n",
|
||||
lck, gtid));
|
||||
#ifdef __COSMOPOLITAN__
|
||||
nsync_futex_wake_(&(lck->lk.poll), 1, false);
|
||||
nsync_futex_wake_((_Atomic(int) *)&(lck->lk.poll), 1, false);
|
||||
#else
|
||||
syscall(__NR_futex, &(lck->lk.poll), FUTEX_WAKE, KMP_LOCK_BUSY(1, futex),
|
||||
NULL, NULL, 0);
|
||||
|
|
2
third_party/openmp/kmp_runtime.cpp
vendored
2
third_party/openmp/kmp_runtime.cpp
vendored
|
@ -10,6 +10,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#pragma GCC diagnostic ignored "-Wvolatile" // wut
|
||||
|
||||
#include "kmp.h"
|
||||
#include "kmp_affinity.h"
|
||||
#include "kmp_atomic.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue