mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 11:18:30 +00:00
Fix bugs in cosmocc toolchain
This change integrates e58abc1110b335a3341e8ad5821ad8e3880d9bb2 from https://github.com/ahgamut/musl-cross-make/ which fixes the issues we were having with our C language extension for symbolic constants. This change also performs some code cleanup and bug fixes to getaddrinfo(). It's now possible to compile projects like ncurses, readline and python without needing to patch anything upstream, except maybe a line or two. Pretty soon it should be possible to build a Linux distro on Cosmo.
This commit is contained in:
parent
22f81a8d50
commit
23e235b7a5
272 changed files with 3491 additions and 4350 deletions
|
@ -71,7 +71,7 @@ int64_t Bsu(int w, int h, uint64_t x, uint64_t y, uint32_t *f) {
|
|||
case 3:
|
||||
return Shr64(x, y, f);
|
||||
default:
|
||||
unreachable;
|
||||
__builtin_unreachable();
|
||||
}
|
||||
case BSU_SAL:
|
||||
case BSU_SHL:
|
||||
|
@ -85,7 +85,7 @@ int64_t Bsu(int w, int h, uint64_t x, uint64_t y, uint32_t *f) {
|
|||
case 3:
|
||||
return Shl64(x, y, f);
|
||||
default:
|
||||
unreachable;
|
||||
__builtin_unreachable();
|
||||
}
|
||||
case BSU_SAR:
|
||||
switch (w) {
|
||||
|
@ -98,7 +98,7 @@ int64_t Bsu(int w, int h, uint64_t x, uint64_t y, uint32_t *f) {
|
|||
case 3:
|
||||
return Sar64(x, y, f);
|
||||
default:
|
||||
unreachable;
|
||||
__builtin_unreachable();
|
||||
}
|
||||
case BSU_ROL:
|
||||
switch (w) {
|
||||
|
@ -111,7 +111,7 @@ int64_t Bsu(int w, int h, uint64_t x, uint64_t y, uint32_t *f) {
|
|||
case 3:
|
||||
return Rol64(x, y, f);
|
||||
default:
|
||||
unreachable;
|
||||
__builtin_unreachable();
|
||||
}
|
||||
case BSU_ROR:
|
||||
switch (w) {
|
||||
|
@ -124,7 +124,7 @@ int64_t Bsu(int w, int h, uint64_t x, uint64_t y, uint32_t *f) {
|
|||
case 3:
|
||||
return Ror64(x, y, f);
|
||||
default:
|
||||
unreachable;
|
||||
__builtin_unreachable();
|
||||
}
|
||||
case BSU_RCR:
|
||||
switch (w) {
|
||||
|
@ -137,7 +137,7 @@ int64_t Bsu(int w, int h, uint64_t x, uint64_t y, uint32_t *f) {
|
|||
case 3:
|
||||
return Rcr64(x, y, f);
|
||||
default:
|
||||
unreachable;
|
||||
__builtin_unreachable();
|
||||
}
|
||||
case BSU_RCL:
|
||||
switch (w) {
|
||||
|
@ -150,10 +150,10 @@ int64_t Bsu(int w, int h, uint64_t x, uint64_t y, uint32_t *f) {
|
|||
case 3:
|
||||
return Rcl64(x, y, f);
|
||||
default:
|
||||
unreachable;
|
||||
__builtin_unreachable();
|
||||
}
|
||||
default:
|
||||
unreachable;
|
||||
__builtin_unreachable();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue