mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 19:58:30 +00:00
Hunt down more bugs
After going through the MODE=dbg and MODE=zero build modes, a bunch of little issues were identified, which have been addressed. Fixing those issues created even more troubles for the project, because it improved our ability to detect latent problems which are getting fixed so fast.
This commit is contained in:
parent
73c0faa1b5
commit
97b7116953
39 changed files with 557 additions and 754 deletions
4
third_party/xxhash/xxh_x86dispatch.c
vendored
4
third_party/xxhash/xxh_x86dispatch.c
vendored
|
@ -1,4 +1,6 @@
|
|||
// clang-format off
|
||||
#ifdef __x86_64__
|
||||
|
||||
/*
|
||||
* xxHash - Extremely Fast Hash algorithm
|
||||
* Copyright (C) 2020-2021 Yann Collet
|
||||
|
@ -806,3 +808,5 @@ XXH3_128bits_update_dispatch(XXH_NOESCAPE XXH3_state_t* state, XXH_NOESCAPE cons
|
|||
}
|
||||
#endif
|
||||
/*! @} */
|
||||
|
||||
#endif /* __x86_64__ */
|
||||
|
|
1
third_party/xxhash/xxhash.h
vendored
1
third_party/xxhash/xxhash.h
vendored
|
@ -177,6 +177,7 @@
|
|||
* @file xxhash.h
|
||||
* xxHash prototypes and implementation
|
||||
*/
|
||||
#include "third_party/aarch64/arm_neon.internal.h"
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
|
|
38
third_party/xxhash/xxhash.mk
vendored
38
third_party/xxhash/xxhash.mk
vendored
|
@ -12,36 +12,36 @@ THIRD_PARTY_XXHASH_SRCS = $(filter %.c,$(THIRD_PARTY_XXHASH_FILES))
|
|||
THIRD_PARTY_XXHASH_OBJS = $(THIRD_PARTY_XXHASH_SRCS:%.c=o/$(MODE)/%.o)
|
||||
|
||||
THIRD_PARTY_XXHASH_A_DIRECTDEPS = \
|
||||
LIBC_CALLS \
|
||||
LIBC_FMT \
|
||||
LIBC_INTRIN \
|
||||
LIBC_MEM \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_STDIO \
|
||||
LIBC_STR \
|
||||
LIBC_SYSV \
|
||||
LIBC_CALLS \
|
||||
LIBC_FMT \
|
||||
LIBC_INTRIN \
|
||||
LIBC_MEM \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_STDIO \
|
||||
LIBC_STR \
|
||||
LIBC_SYSV \
|
||||
LIBC_TIME
|
||||
|
||||
THIRD_PARTY_XXHASH_A_DEPS := \
|
||||
THIRD_PARTY_XXHASH_A_DEPS := \
|
||||
$(call uniq,$(foreach x,$(THIRD_PARTY_XXHASH_A_DIRECTDEPS),$($(x))))
|
||||
|
||||
THIRD_PARTY_XXHASH_CHECKS = \
|
||||
$(THIRD_PARTY_XXHASH_A).pkg \
|
||||
THIRD_PARTY_XXHASH_CHECKS = \
|
||||
$(THIRD_PARTY_XXHASH_A).pkg \
|
||||
$(THIRD_PARTY_XXHASH_HDRS:%=o/$(MODE)/%.ok)
|
||||
|
||||
$(THIRD_PARTY_XXHASH_A): \
|
||||
third_party/xxhash/ \
|
||||
$(THIRD_PARTY_XXHASH_A).pkg \
|
||||
third_party/xxhash/ \
|
||||
$(THIRD_PARTY_XXHASH_A).pkg \
|
||||
$(THIRD_PARTY_XXHASH_OBJS)
|
||||
|
||||
$(THIRD_PARTY_XXHASH_A).pkg: \
|
||||
$(THIRD_PARTY_XXHASH_OBJS) \
|
||||
$(THIRD_PARTY_XXHASH_A).pkg: \
|
||||
$(THIRD_PARTY_XXHASH_OBJS) \
|
||||
$(foreach x,$(THIRD_PARTY_XXHASH_A_DIRECTDEPS),$($(x)_A).pkg)
|
||||
|
||||
o/$(MODE)/third_party/xxhash/xxhsum.com.dbg: \
|
||||
$(THIRD_PARTY_XXHASH) \
|
||||
o/$(MODE)/third_party/xxhash/cli/xxhsum.o \
|
||||
$(CRT) \
|
||||
$(THIRD_PARTY_XXHASH) \
|
||||
o/$(MODE)/third_party/xxhash/cli/xxhsum.o \
|
||||
$(CRT) \
|
||||
$(APE_NO_MODIFY_SELF)
|
||||
@$(APELINK)
|
||||
|
||||
|
@ -50,6 +50,6 @@ THIRD_PARTY_XXHASH_COMS = o/$(MODE)/third_party/xxhash/xxhsum.com
|
|||
THIRD_PARTY_XXHASH_LIBS = $(THIRD_PARTY_XXHASH_A)
|
||||
|
||||
.PHONY: o/$(MODE)/third_party/xxhash
|
||||
o/$(MODE)/third_party/xxhash: \
|
||||
o/$(MODE)/third_party/xxhash: \
|
||||
$(THIRD_PARTY_XXHASH_BINS) \
|
||||
$(THIRD_PARTY_XXHASH_CHECKS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue