]> Cypherpunks repositories - gostls13.git/commit
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)
commit636169405c370e3010f7a08162ed83b0da013b49
tree48bf37200a0076d3141ccfae60d14057f796b565
parent61f5fd6f668fe6e2043361d312ec8c418702b9b3
build: add intptr typedef for Plan 9

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