Commit 22869899 authored by Russ Cox's avatar Russ Cox

[dev.cc] cmd/gc, cmd/ld, runtime: minor tweaks for c2go

Change-Id: I3be69a4ebf300ad24b55b5f43fd7ad1f001c762e
Reviewed-on: https://go-review.googlesource.com/4838Reviewed-by: default avatarRob Pike <r@golang.org>
parent 535f29c6
......@@ -118,7 +118,8 @@ EXTERN Bits ovar;
EXTERN int change;
EXTERN int32 maxnr;
EXTERN struct
typedef struct OptStats OptStats;
struct OptStats
{
int32 ncvtreg;
int32 nspill;
......@@ -126,7 +127,9 @@ EXTERN struct
int32 ndelmov;
int32 nvar;
int32 naddr;
} ostats;
};
EXTERN OptStats ostats;
/*
* reg.c
......
......@@ -634,7 +634,7 @@ walkexpr(Node **np, NodeList **init)
// Append captured variables to argument list.
n->list = concat(n->list, n->left->enter);
n->left->enter = NULL;
n->left->enter = nil;
// Replace OCLOSURE with ONAME/PFUNC.
n->left = n->left->closure->nname;
// Update type of OCALLFUNC node.
......
......@@ -104,7 +104,7 @@ uleb128enc(uvlong v, char* dst)
len++;
} while (c & 0x80);
return len;
};
}
static int
sleb128enc(vlong v, char *dst)
......
......@@ -22,6 +22,10 @@ enum {
#define STACKSYSTEM 0
#endif
/*c2go
STACKSYSTEM = 0,
*/
StackSystem = STACKSYSTEM,
StackBig = 4096,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment