Commit f3492a7d authored by Russ Cox's avatar Russ Cox

8g: use uintptr for local pc

Fixes #2478.

R=ken2
CC=golang-dev
https://golang.org/cl/5593051
parent 2d6c0116
...@@ -783,7 +783,7 @@ ginit(void) ...@@ -783,7 +783,7 @@ ginit(void)
reg[resvd[i]]++; reg[resvd[i]]++;
} }
ulong regpc[D_NONE]; uintptr regpc[D_NONE];
void void
gclean(void) gclean(void)
...@@ -871,7 +871,7 @@ out: ...@@ -871,7 +871,7 @@ out:
if (i == D_SP) if (i == D_SP)
print("alloc SP\n"); print("alloc SP\n");
if(reg[i] == 0) { if(reg[i] == 0) {
regpc[i] = (ulong)getcallerpc(&n); regpc[i] = (uintptr)getcallerpc(&n);
if(i == D_AX || i == D_CX || i == D_DX || i == D_SP) { if(i == D_AX || i == D_CX || i == D_DX || i == D_SP) {
dump("regalloc-o", o); dump("regalloc-o", o);
fatal("regalloc %R", i); fatal("regalloc %R", i);
......
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