Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
54193689
Commit
54193689
authored
Sep 17, 2012
by
Jan Ziak
Committed by
Russ Cox
Sep 17, 2012
Browse files
Options
Browse Files
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
mgc0.c
src/pkg/runtime/mgc0.c
+0
-1
runtime.h
src/pkg/runtime/runtime.h
+4
-0
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
,
...
...
src/pkg/runtime/runtime.h
View file @
54193689
...
...
@@ -118,6 +118,10 @@ enum
true
=
1
,
false
=
0
,
};
enum
{
PtrSize
=
sizeof
(
void
*
),
};
/*
* structures
...
...
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
,
};
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