]> Cypherpunks repositories - gostls13.git/commitdiff
build: add intptr typedef for Plan 9
authorAnthony Martin <ality@pbrane.org>
Tue, 4 Jun 2013 23:21:04 +0000 (16:21 -0700)
committerAnthony Martin <ality@pbrane.org>
Tue, 4 Jun 2013 23:21:04 +0000 (16:21 -0700)
Revision 01810e5c68e9 added the following to src/pkg/runtime/stack.h:

        StackPreempt = (uintptr)(intptr)0xffffade,

The typedef for intptr is defined in two places:

        1. src/pkg/runtime/runtime.h for use by the runtime

        2. include/u.h for use by the compilers and linkers

On Plan 9, we don't use include/u.h but instead augment the host's
u.h with extra typedefs. These are in include/plan9/GOARCH/u.h.

We forgot to add intptr. It didn't cause a problem until now since
that typedef was never used outside the runtime.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/10023043

include/plan9/386/u.h
include/plan9/amd64/u.h
include/plan9/arm/u.h

index 3f4a55cb2081c681d5de33e67888bb812e29d4f1..4736b8efb23cb3eb0645f17b24781fa84347c53a 100644 (file)
@@ -4,11 +4,12 @@
 
 #include "/386/include/u.h"
 
-typedef char   int8;
-typedef uchar  uint8;
-typedef short  int16;
-typedef ushort uint16;
-typedef int    int32;
-typedef uint   uint32;
-typedef vlong  int64;
-typedef uvlong uint64;
+typedef        char    int8;
+typedef        uchar   uint8;
+typedef        short   int16;
+typedef        ushort  uint16;
+typedef        int     int32;
+typedef        uint    uint32;
+typedef        vlong   int64;
+typedef        uvlong  uint64;
+typedef        int     intptr;
index f2430b535986f7a59209e797a05310246025945c..090b2fa5c93bd4ab9091b5782827283add2b7db8 100644 (file)
@@ -4,11 +4,12 @@
 
 #include "/amd64/include/u.h"
 
-typedef char   int8;
-typedef uchar  uint8;
-typedef short  int16;
-typedef ushort uint16;
-typedef int    int32;
-typedef uint   uint32;
-typedef vlong  int64;
-typedef uvlong uint64;
+typedef        char    int8;
+typedef        uchar   uint8;
+typedef        short   int16;
+typedef        ushort  uint16;
+typedef        int     int32;
+typedef        uint    uint32;
+typedef        vlong   int64;
+typedef        uvlong  uint64;
+typedef        vlong   intptr;
index c387ae7b18be3ccb94db972ebdfead2948e49f39..19249aa480546c8d403b624b1f5cfb830aa7564a 100644 (file)
@@ -4,11 +4,12 @@
 
 #include "/arm/include/u.h"
 
-typedef char   int8;
-typedef uchar  uint8;
-typedef short  int16;
-typedef ushort uint16;
-typedef int    int32;
-typedef uint   uint32;
-typedef vlong  int64;
-typedef uvlong uint64;
+typedef        char    int8;
+typedef        uchar   uint8;
+typedef        short   int16;
+typedef        ushort  uint16;
+typedef        int     int32;
+typedef        uint    uint32;
+typedef        vlong   int64;
+typedef        uvlong  uint64;
+typedef        int     intptr;