Get codebase completely working with LLVM

You can now build Cosmopolitan with Clang:

    make -j8 MODE=llvm
    o/llvm/examples/hello.com

The assembler and linker code is now friendly to LLVM too.
So it's not needed to configure Clang to use binutils under
the hood. If you love LLVM then you can now use pure LLVM.
This commit is contained in:
Justine Tunney 2021-02-08 09:19:00 -08:00
parent 0e36cb3ac4
commit e75ffde09e
4528 changed files with 7776 additions and 11640 deletions

View file

@ -160,12 +160,6 @@ static const struct stringpool_t stringpool_contents =
"data"
};
#define stringpool ((const char *) &stringpool_contents)
#ifdef __GNUC__
__inline
#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
__attribute__ ((__gnu_inline__))
#endif
#endif
const struct UriSchemeSlot *
in_word_set (register const char *str, register unsigned int len)
{

View file

@ -18,12 +18,12 @@
*/
#include "libc/macros.h"
/ Verifies buffer contains only URI characters.
/
/ @param %rdi is data which should be 32-byte aligned
/ @param %rsi is byte length of data
/ @return number of kosher bytes
/ @cost 10x faster than fastest Ragel code
// Verifies buffer contains only URI characters.
//
// @param %rdi is data which should be 32-byte aligned
// @param %rsi is byte length of data
// @return number of kosher bytes
// @cost 10x faster than fastest Ragel code
uricspn$avx:
.leafprologue
.profilable
@ -49,13 +49,13 @@ uricspn$avx:
.endfn uricspn$avx,globl,hidden
.rodata.cst16
.Luric: .byte '!,'!
.byte '$,';
.byte '=,'=
.byte '?,'Z
.byte '_,'_
.byte 'a,'z
.byte '~,'~
.Luric: .byte '!','!'
.byte '$',';'
.byte '=','='
.byte '?','Z'
.byte '_','_'
.byte 'a','z'
.byte '~','~'
.byte 0,0
.endobj .Luric
.previous