]> Cypherpunks repositories - gostls13.git/commitdiff
8g: use uintptr for local pc
authorRuss Cox <rsc@golang.org>
Mon, 30 Jan 2012 18:20:10 +0000 (13:20 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 30 Jan 2012 18:20:10 +0000 (13:20 -0500)
Fixes #2478.

R=ken2
CC=golang-dev
https://golang.org/cl/5593051

src/cmd/8g/gsubr.c

index 9d0f7025f449deaa74bf11234f10347de9b3790f..44dcd50b5472d039cfaac15fd19dc2fd2b9b6822 100644 (file)
@@ -783,7 +783,7 @@ ginit(void)
                reg[resvd[i]]++;
 }
 
-ulong regpc[D_NONE];
+uintptr regpc[D_NONE];
 
 void
 gclean(void)
@@ -871,7 +871,7 @@ out:
        if (i == D_SP)
                print("alloc SP\n");
        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) {
                        dump("regalloc-o", o);
                        fatal("regalloc %R", i);