Fast forward to sync public repo.
Compile math.sinh(), math.cosh(), math.tanh() and math.random(). Compile various io.*() functions. Drive the GC forward on string allocations in the parser. Improve KNUM fuse vs. load heuristics. Add abstract C call handling to IR.
This commit is contained in:
@@ -26,6 +26,14 @@ static void emit_asm_bytes(BuildCtx *ctx, uint8_t *p, int n)
|
||||
static void emit_asm_reloc(BuildCtx *ctx, BuildReloc *r)
|
||||
{
|
||||
const char *sym = ctx->extnames[r->sym];
|
||||
const char *p = strchr(sym, '@');
|
||||
char buf[80];
|
||||
if (p) {
|
||||
/* Always strip fastcall suffix. Wrong for (unused) COFF on Win32. */
|
||||
strncpy(buf, sym, p-sym);
|
||||
buf[p-sym] = '\0';
|
||||
sym = buf;
|
||||
}
|
||||
switch (ctx->mode) {
|
||||
case BUILD_elfasm:
|
||||
if (r->type)
|
||||
|
||||
Reference in New Issue
Block a user