Refactor some code

This commit is contained in:
Justine Tunney 2024-05-22 12:09:55 -07:00
parent 787b04f752
commit 9b87dd2b87
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
11 changed files with 43 additions and 10 deletions

View file

@ -82,7 +82,16 @@ o//libc/intrin/memcmp.o \
o//libc/intrin/memset.o \
o//libc/intrin/memmove.o: private \
CFLAGS += \
-O2 -finline -foptimize-sibling-calls
-O2 \
-finline \
-foptimize-sibling-calls
# make asan stack traces shorter
o/$(MODE)/libc/intrin/asanthunk.o: private \
CFLAGS += \
-Os \
$(NO_MAGIC) \
-foptimize-sibling-calls
o/$(MODE)/libc/intrin/bzero.o \
o/$(MODE)/libc/intrin/memcmp.o \

View file

@ -18,9 +18,10 @@
*/
#include "libc/dce.h"
#include "libc/fmt/magnumstrs.internal.h"
#include "libc/stdalign.internal.h"
#include "libc/str/str.h"
_Alignas(1) static char strerror_buf[128];
alignas(1) static char strerror_buf[128];
/**
* Returns string describing `err`.