mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-25 03:50:29 +00:00
Make improvements
- Fix unused local variable errors - Remove yoinks from sigaction() header - Add nox87 and aarch64 to github actions - Fix cosmocc -fportcosmo in linking mode - It's now possible to build `make m=llvm o/llvm/libc`
This commit is contained in:
parent
3dc86ce154
commit
f7ae50462a
118 changed files with 342 additions and 392 deletions
|
@ -227,6 +227,7 @@ const char *const kGccOnlyFlags[] = {
|
|||
"-fcx-limited-range",
|
||||
"-fdelete-dead-exceptions",
|
||||
"-femit-struct-debug-baseonly",
|
||||
"-ffp-int-builtin-inexact",
|
||||
"-fipa-pta",
|
||||
"-fivopts",
|
||||
"-flimit-function-alignment",
|
||||
|
@ -236,6 +237,7 @@ const char *const kGccOnlyFlags[] = {
|
|||
"-fno-align-jumps",
|
||||
"-fno-align-labels",
|
||||
"-fno-align-loops",
|
||||
"-fno-cx-limited-range",
|
||||
"-fno-fp-int-builtin-inexact",
|
||||
"-fno-gnu-unique",
|
||||
"-fno-gnu-unique",
|
||||
|
@ -1155,11 +1157,13 @@ int main(int argc, char *argv[]) {
|
|||
} else if (_startswith(argv[i], "-fsanitize=implicit") &&
|
||||
strstr(argv[i], "integer")) {
|
||||
if (isgcc) AddArg(argv[i]);
|
||||
} else if (strstr(argv[i], "stack-protector")) {
|
||||
if (isclang || (isgcc && ccversion >= 6)) {
|
||||
AddArg(argv[i]);
|
||||
}
|
||||
} else if (_startswith(argv[i], "-fvect-cost") ||
|
||||
_startswith(argv[i], "-mstringop") ||
|
||||
_startswith(argv[i], "-gz") ||
|
||||
strstr(argv[i], "stack-protector") ||
|
||||
strstr(argv[i], "sanitize") ||
|
||||
_startswith(argv[i], "-gz") || strstr(argv[i], "sanitize") ||
|
||||
_startswith(argv[i], "-fvect-cost") ||
|
||||
_startswith(argv[i], "-fvect-cost")) {
|
||||
if (isgcc && ccversion >= 6) {
|
||||
|
|
|
@ -163,7 +163,8 @@
|
|||
"__sync_lock_release"))
|
||||
|
||||
(gcc-builtin-functions-ia32
|
||||
'("__builtin_ia32_pmovmskb128"))
|
||||
'("__builtin_ia32_pmovmskb128"
|
||||
"__builtin_ia32_pmovmskb256"))
|
||||
|
||||
(gxx-builtin-type-traits
|
||||
'("__has_nothrow_assign"
|
||||
|
|
|
@ -183,7 +183,7 @@ if [ $INTENT = cpp ]; then
|
|||
elif [ $INTENT = cc ]; then
|
||||
set -- $PLATFORM $PREDEF $CCFLAGS $CXXFLAGS $CPPFLAGS "$@" $FRAME
|
||||
else
|
||||
set -- $PLATFORM $PREDEF $LDFLAGS $APEFLAGS $CXXFLAGS $CPPFLAGS "$@" \
|
||||
set -- $PLATFORM $PREDEF $CCFLAGS $CXXFLAGS $CPPFLAGS $LDFLAGS $APEFLAGS $CXXFLAGS $CPPFLAGS "$@" \
|
||||
$LDLIBS -Wl,-z,common-page-size=4096 -Wl,-z,max-page-size=4096 $FRAME
|
||||
fi
|
||||
|
||||
|
|
|
@ -181,7 +181,7 @@ if [ $INTENT = cpp ]; then
|
|||
elif [ $INTENT = cc ]; then
|
||||
set -- $PLATFORM $PREDEF $CCFLAGS $CFLAGS $CPPFLAGS "$@" $FRAME
|
||||
else
|
||||
set -- $PLATFORM $PREDEF $LDFLAGS $APEFLAGS $CFLAGS $CPPFLAGS "$@" \
|
||||
set -- $PLATFORM $PREDEF $CCFLAGS $CFLAGS $CPPFLAGS $LDFLAGS $APEFLAGS $CFLAGS $CPPFLAGS "$@" \
|
||||
$LDLIBS -Wl,-z,common-page-size=4096 -Wl,-z,max-page-size=4096 $FRAME
|
||||
fi
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "libc/calls/struct/winsize.h"
|
||||
#include "libc/calls/termios.h"
|
||||
#include "libc/calls/ucontext.h"
|
||||
#include "libc/dce.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/fmt/itoa.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue