working (?) tcc build
This commit is contained in:
parent
e900dd8d6f
commit
e94266df3d
9 changed files with 79 additions and 26 deletions
|
@ -1,7 +1,7 @@
|
|||
#ifndef CONFIG_TCCDIR
|
||||
# define CONFIG_TCCDIR "/usr/local/lib/tcc-bootstrap"
|
||||
#endif
|
||||
#define TCC_VERSION "0.9.27"
|
||||
#define TCC_VERSION "0.9.25"
|
||||
#define CONFIG_TCC_STATIC 1
|
||||
#define TCC_TARGET_X86_64 1
|
||||
#define CONFIG_TCC_ELFINTERP "/XXX"
|
||||
|
|
|
@ -2178,7 +2178,7 @@ typedef struct FlagDef {
|
|||
const char *name;
|
||||
} FlagDef;
|
||||
|
||||
static const FlagDef warning_defs[] = {
|
||||
static FlagDef warning_defs[] = {
|
||||
{ 0, 0, "unsupported" },
|
||||
{ 0, 0, "write-strings" },
|
||||
{ 0, 0, "error" },
|
||||
|
@ -2235,7 +2235,7 @@ int tcc_set_warning(TCCState *s, const char *warning_name, int value)
|
|||
}
|
||||
}
|
||||
|
||||
static const FlagDef flag_defs[] = {
|
||||
static FlagDef flag_defs[] = {
|
||||
{ 0, 0, "unsigned-char" },
|
||||
{ 0, FD_INVERT, "signed-char" },
|
||||
{ 0, FD_INVERT, "common" },
|
||||
|
|
|
@ -37,6 +37,13 @@
|
|||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
#include <time.h>
|
||||
#ifdef __GNUC__
|
||||
#include <inttypes.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
|
||||
static const char tcc_keywords[] =
|
||||
#define DEF(id, str) str "\0"
|
||||
#define DEF(id, str) str "\n"
|
||||
#include "tcctok.h"
|
||||
#undef DEF
|
||||
;
|
||||
|
@ -862,6 +862,7 @@ static inline void define_push(int v, int macro_type, int *str, Sym *first_arg)
|
|||
|
||||
s = sym_push2(&define_stack, v, macro_type, (long)str);
|
||||
s->next = first_arg;
|
||||
|
||||
table_ident[v - TOK_IDENT]->sym_define = s;
|
||||
}
|
||||
|
||||
|
@ -2883,7 +2884,7 @@ void preprocess_new()
|
|||
r = p;
|
||||
for(;;) {
|
||||
c = *r++;
|
||||
if (c == '\0')
|
||||
if (c == '\n')
|
||||
break;
|
||||
}
|
||||
ts = tok_alloc(p, r - p - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue