Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
go
Commits
54193689
Commit
54193689
authored
12 years ago
by
Jan Ziak
Committed by
Russ Cox
12 years ago
Browse files
Options
Download
Email Patches
Plain Diff
cmd/ld: fix compilation when GOARCH != GOHOSTARCH
R=rsc, dave, minux.ma CC=golang-dev
https://golang.org/cl/6493123
parent
0f8f5d21
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
src/pkg/runtime/mgc0.c
src/pkg/runtime/mgc0.c
+0
-1
src/pkg/runtime/runtime.h
src/pkg/runtime/runtime.h
+4
-0
src/pkg/runtime/typekind.h
src/pkg/runtime/typekind.h
+4
-1
No files found.
src/pkg/runtime/mgc0.c
View file @
54193689
...
...
@@ -11,7 +11,6 @@
enum
{
Debug
=
0
,
PtrSize
=
sizeof
(
void
*
),
DebugMark
=
0
,
// run second pass to check mark
DataBlock
=
8
*
1024
,
...
...
This diff is collapsed.
Click to expand it.
src/pkg/runtime/runtime.h
View file @
54193689
...
...
@@ -118,6 +118,10 @@ enum
true
=
1
,
false
=
0
,
};
enum
{
PtrSize
=
sizeof
(
void
*
),
};
/*
* structures
...
...
This diff is collapsed.
Click to expand it.
src/pkg/runtime/typekind.h
View file @
54193689
...
...
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// PtrSize vs sizeof(void*): This file is also included from src/cmd/ld/...
// which defines PtrSize to be different from sizeof(void*) when crosscompiling.
enum
{
KindBool
=
1
,
KindInt
,
...
...
@@ -33,6 +36,6 @@ enum {
KindNoPointers
=
1
<<
7
,
// size of Type interface header + CommonType structure.
CommonSize
=
2
*
sizeof
(
void
*
)
+
6
*
sizeof
(
void
*
)
+
8
,
CommonSize
=
2
*
PtrSize
+
6
*
PtrSize
+
8
,
};
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment