mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Release Cosmopolitan v3.8.0
This change switches c++ exception handling from sjlj to standard dwarf. It's needed because clang for aarch64 doesn't support sjlj. It turns out that libunwind had a bare-metal configuration that made this easy to do. This change gets the new experimental cosmocc -mclang flag in a state of working so well that it can now be used to build all of llamafile and it goes 3x faster in terms of build latency, without trading away any perf. The int_fast16_t and int_fast32_t types are now always defined as 32-bit in the interest of having more abi consistency between cosmocc -mgcc and -mclang mode.
This commit is contained in:
parent
5b9862907c
commit
c9152b6f14
188 changed files with 199063 additions and 636 deletions
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_AMMINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_AMMINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/ammintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/ammintrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_AMMINTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/amxcomplexintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/amxcomplexintrin.internal.h"
|
||||
#endif
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/amxfp16intrin.h"
|
||||
#else
|
||||
#include "third_party/intel/amxfp16intrin.internal.h"
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_ARM_ACLE_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_ARM_ACLE_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/aarch64/clang/arm_acle.h"
|
||||
#else
|
||||
#include "third_party/aarch64/arm_acle.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_ARM_ACLE_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_ARM_BF16_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_ARM_BF16_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/aarch64/clang/arm_bf16.h"
|
||||
#else
|
||||
#include "third_party/aarch64/arm_bf16.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_ARM_BF16_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_ARM_FP16_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_ARM_FP16_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/aarch64/clang/arm_fp16.h"
|
||||
#else
|
||||
#include "third_party/aarch64/arm_fp16.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_ARM_FP16_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_ARM_NEON_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_ARM_NEON_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/aarch64/clang/arm_neon.h"
|
||||
#else
|
||||
#include "third_party/aarch64/arm_neon.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_ARM_NEON_H_ */
|
||||
|
|
8
libc/isystem/arm_sve.h
Normal file
8
libc/isystem/arm_sve.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_ARM_SVE_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_ARM_SVE_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/aarch64/clang/arm_sve.h"
|
||||
#else
|
||||
#include "third_party/aarch64/arm_sve.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_ARM_SVE_H_ */
|
8
libc/isystem/arm_vector_types.h
Normal file
8
libc/isystem/arm_vector_types.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_ARM_VECTOR_TYPES_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_ARM_VECTOR_TYPES_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/aarch64/clang/arm_vector_types.h"
|
||||
#else
|
||||
#include "third_party/aarch64/arm_vector_types.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_ARM_VECTOR_TYPES_H_ */
|
|
@ -1 +1,5 @@
|
|||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/avxifmaintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/avxifmaintrin.internal.h"
|
||||
#endif
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/avxneconvertintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/avxneconvertintrin.internal.h"
|
||||
#endif
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/avxvnniint16intrin.h"
|
||||
#else
|
||||
#include "third_party/intel/avxvnniint16intrin.internal.h"
|
||||
#endif
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/avxvnniint8intrin.h"
|
||||
#else
|
||||
#include "third_party/intel/avxvnniint8intrin.internal.h"
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_CLZEROINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_CLZEROINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/clzerointrin.h"
|
||||
#else
|
||||
#include "third_party/intel/clzerointrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_CLZEROINTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/cmpccxaddintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/cmpccxaddintrin.internal.h"
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_EMMINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_EMMINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/emmintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/emmintrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_EMMINTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_IMMINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_IMMINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/immintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/immintrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_IMMINTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_MM_MALLOC_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_MM_MALLOC_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/mm_malloc.h"
|
||||
#else
|
||||
#include "third_party/intel/mm_malloc.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_MM_MALLOC_INTERNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_MMINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_MMINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/mmintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/mmintrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_MMINTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_MWAITXINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_MWAITXINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/mwaitxintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/mwaitxintrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_MWAITXINTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_NMMINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_NMMINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/nmmintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/nmmintrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_NMMINTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_PMMINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_PMMINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/pmmintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/pmmintrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_PMMINTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_POPCNTINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_POPCNTINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/popcntintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/popcntintrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_POPCNTINTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/prfchiintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/prfchiintrin.internal.h"
|
||||
#endif
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/raointintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/raointintrin.internal.h"
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_SGXINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_SGXINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/sgxintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/sgxintrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_SGXINTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/sha512intrin.h"
|
||||
#else
|
||||
#include "third_party/intel/sha512intrin.internal.h"
|
||||
#endif
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/sm3intrin.h"
|
||||
#else
|
||||
#include "third_party/intel/sm3intrin.internal.h"
|
||||
#endif
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/sm4intrin.h"
|
||||
#else
|
||||
#include "third_party/intel/sm4intrin.internal.h"
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_SMMINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_SMMINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/smmintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/smmintrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_SMMINTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_TMMINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_TMMINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/tmmintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/tmmintrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_TMMINTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/usermsrintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/usermsrintrin.internal.h"
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_WMMINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_WMMINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/wmmintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/wmmintrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_WMMINTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_X86INTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_X86INTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/x86intrin.h"
|
||||
#else
|
||||
#include "third_party/intel/x86intrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_X86INTRIN_INTERNAL_H_ */
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_XMMINTRIN_INTERNAL_H_
|
||||
#define COSMOPOLITAN_LIBC_ISYSTEM_XMMINTRIN_INTERNAL_H_
|
||||
#ifdef __clang__
|
||||
#include "third_party/intel/clang/xmmintrin.h"
|
||||
#else
|
||||
#include "third_party/intel/xmmintrin.internal.h"
|
||||
#endif
|
||||
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_XMMINTRIN_INTERNAL_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue