OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b687f73
)
Fix sysinfo.go on systems which don't need to import "unsafe".
author
ian
<ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Sep 2011 21:49:08 +0000
(21:49 +0000)
committer
ian
<ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Sep 2011 21:49:08 +0000
(21:49 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179216
138bc75d
-0d04-0410-961f-
82ee72b054a4
libgo/mksysinfo.sh
patch
|
blob
|
history
diff --git
a/libgo/mksysinfo.sh
b/libgo/mksysinfo.sh
index
2bc35e5
..
2b5acd6
100755
(executable)
--- a/
libgo/mksysinfo.sh
+++ b/
libgo/mksysinfo.sh
@@
-96,6
+96,7
@@
${CC} -fdump-go-spec=gen-sysinfo.go -std=gnu99 -S -o sysinfo.s sysinfo.c
echo 'package syscall' > ${OUT}
echo 'import "unsafe"' >> ${OUT}
echo 'package syscall' > ${OUT}
echo 'import "unsafe"' >> ${OUT}
+echo 'type _ unsafe.Pointer' >> ${OUT}
# Get all the consts and types, skipping ones which could not be
# represented in Go and ones which we need to rewrite. We also skip
# Get all the consts and types, skipping ones which could not be
# represented in Go and ones which we need to rewrite. We also skip