mirror of
https://github.com/golang/go
synced 2024-10-05 18:31:28 -06:00
[dev.power64] cmd/dist: tell goc2c that power64 is 64-bit system
LGTM=minux R=minux CC=golang-codereviews https://golang.org/cl/125300043
This commit is contained in:
parent
aa739b8d03
commit
25d4d75376
10
src/cmd/dist/goc2c.c
vendored
10
src/cmd/dist/goc2c.c
vendored
@ -786,7 +786,11 @@ goc2c(char *goc, char *c)
|
|||||||
// TODO: set gcc=1 when using gcc
|
// TODO: set gcc=1 when using gcc
|
||||||
|
|
||||||
if(!gcc) {
|
if(!gcc) {
|
||||||
if(streq(goarch, "amd64")) {
|
if(contains(goarch, "64p32")) {
|
||||||
|
type_table[Uintptr].size = 4;
|
||||||
|
type_table[Int].size = 4;
|
||||||
|
structround = 8;
|
||||||
|
} else if(contains(goarch, "64")) {
|
||||||
type_table[Uintptr].size = 8;
|
type_table[Uintptr].size = 8;
|
||||||
if(use64bitint) {
|
if(use64bitint) {
|
||||||
type_table[Int].size = 8;
|
type_table[Int].size = 8;
|
||||||
@ -794,10 +798,6 @@ goc2c(char *goc, char *c)
|
|||||||
type_table[Int].size = 4;
|
type_table[Int].size = 4;
|
||||||
}
|
}
|
||||||
structround = 8;
|
structround = 8;
|
||||||
} else if(streq(goarch, "amd64p32")) {
|
|
||||||
type_table[Uintptr].size = 4;
|
|
||||||
type_table[Int].size = 4;
|
|
||||||
structround = 8;
|
|
||||||
} else {
|
} else {
|
||||||
// NOTE: These are set in the initializer,
|
// NOTE: These are set in the initializer,
|
||||||
// but they might have been changed by a
|
// but they might have been changed by a
|
||||||
|
Loading…
Reference in New Issue
Block a user