Change-Id: I3be69a4ebf300ad24b55b5f43fd7ad1f001c762e
Reviewed-on: https://go-review.googlesource.com/4838
Reviewed-by: Rob Pike <r@golang.org>
EXTERN int change;
EXTERN int32 maxnr;
-EXTERN struct
+typedef struct OptStats OptStats;
+struct OptStats
{
int32 ncvtreg;
int32 nspill;
int32 ndelmov;
int32 nvar;
int32 naddr;
-} ostats;
+};
+
+EXTERN OptStats ostats;
/*
* reg.c
// 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.
len++;
} while (c & 0x80);
return len;
-};
+}
static int
sleb128enc(vlong v, char *dst)
#define STACKSYSTEM 0
#endif
+ /*c2go
+ STACKSYSTEM = 0,
+ */
+
StackSystem = STACKSYSTEM,
StackBig = 4096,