mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-25 14:52:28 +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
|
@ -21,13 +21,6 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
|
||||
// this dontthrow keyword SHOULD break this test. it's probably passing
|
||||
// because we're currently using SjLj exceptions. the day we can change
|
||||
// things, remove `dontthrow` and this test will still be a useful help
|
||||
extern "C" dontthrow void qsort_(void *, size_t, size_t,
|
||||
int (*)(const void *,
|
||||
const void *)) asm("qsort");
|
||||
|
||||
struct Resource {
|
||||
char *p;
|
||||
Resource() {
|
||||
|
@ -60,7 +53,7 @@ int A[3] = {3, 2, 1};
|
|||
int Work(void) {
|
||||
Resource r;
|
||||
pPoke(r.p);
|
||||
qsort_(A, 3, sizeof(int), cmp);
|
||||
qsort(A, 3, sizeof(int), cmp);
|
||||
return A[0];
|
||||
}
|
||||
int (*pWork)(void) = Work;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue