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
538a58bb
Commit
538a58bb
authored
Nov 01, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/cgo/test: changes to pass when using gccgo
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/6821067
parent
03c52a5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
runtime.c
misc/cgo/test/backdoor/runtime.c
+2
-0
runtime_gccgo.c
misc/cgo/test/backdoor/runtime_gccgo.c
+18
-0
No files found.
misc/cgo/test/backdoor/runtime.c
View file @
538a58bb
...
...
@@ -6,6 +6,8 @@
// Must be in a non-cgo-using package so that
// the go command compiles this file with 6c, not gcc.
// +build gc
typedef
char
bool
;
bool
runtime
·
lockedOSThread
(
void
);
...
...
misc/cgo/test/backdoor/runtime_gccgo.c
0 → 100644
View file @
538a58bb
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Expose some runtime functions for testing.
// This is the gccgo version of runtime.c.
// +build gccgo
_Bool
runtime_lockedOSThread
(
void
);
_Bool
LockedOSThread
(
void
)
asm
(
GOPKGPATH
".LockedOSThread"
);
_Bool
LockedOSThread
(
void
)
{
return
runtime_lockedOSThread
();
}
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