Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
fd0c1dd1
Commit
fd0c1dd1
authored
Jan 10, 2018
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libgo: add platform support for SuperH
Reviewed-on:
https://go-review.googlesource.com/84555
From-SVN: r256446
parent
ec2f999b
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
79 additions
and
15 deletions
+79
-15
gcc/go/gofrontend/MERGE
+1
-1
libgo/configure
+32
-2
libgo/configure.ac
+32
-2
libgo/go/cmd/cgo/main.go
+4
-0
libgo/go/go/build/syslist.go
+1
-1
libgo/go/runtime/hash32.go
+1
-1
libgo/go/runtime/lfstack_32bit.go
+1
-1
libgo/go/runtime/unaligned2.go
+1
-1
libgo/go/syscall/endian_big.go
+1
-1
libgo/go/syscall/endian_little.go
+1
-1
libgo/match.sh
+2
-2
libgo/testsuite/gotest
+2
-2
No files found.
gcc/go/gofrontend/MERGE
View file @
fd0c1dd1
9705a1f4c37ad2c099e9fe6cd587d22a2a2ab2c3
d8a9f7433a9e8a81c992ad2908818d2e84f3698b
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
libgo/configure
View file @
fd0c1dd1
...
...
@@ -13645,10 +13645,10 @@ esac
# supported by the gofrontend and all architectures supported by the
# gc toolchain.
# N.B. Keep in sync with gcc/testsuite/go.test/go-test.exp (go-set-goarch).
ALLGOARCH
=
"386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le ppc ppc64 ppc64le s390 s390x sparc sparc64"
ALLGOARCH
=
"386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le ppc ppc64 ppc64le s390 s390x s
h shbe s
parc sparc64"
# All known GOARCH_FAMILY values.
ALLGOARCHFAMILY
=
"I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 S390 S390X SPARC SPARC64"
ALLGOARCHFAMILY
=
"I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 S390 S390X S
H S
PARC SPARC64"
GOARCH
=
unknown
GOARCH_FAMILY
=
unknown
...
...
@@ -13851,6 +13851,36 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
GOARCH_CACHELINESIZE
=
256
GOARCH_PCQUANTUM
=
2
;;
sh3eb
*
-
*
-
*
)
GOARCH
=
shbe
GOARCH_FAMILY
=
SH
GOARCH_BIGENDIAN
=
true
GOARCH_CACHELINESIZE
=
16
GOARCH_PCQUANTUM
=
2
GOARCH_MINFRAMESIZE
=
4
;;
sh3
*
-
*
-
*
)
GOARCH
=
sh
GOARCH_FAMILY
=
SH
GOARCH_CACHELINESIZE
=
16
GOARCH_PCQUANTUM
=
2
GOARCH_MINFRAMESIZE
=
4
;;
sh4eb
*
-
*
-
*
)
GOARCH
=
shbe
GOARCH_FAMILY
=
SH
GOARCH_BIGENDIAN
=
true
GOARCH_CACHELINESIZE
=
32
GOARCH_PCQUANTUM
=
2
GOARCH_MINFRAMESIZE
=
4
;;
sh4
*
-
*
-
*
)
GOARCH
=
sh
GOARCH_FAMILY
=
SH
GOARCH_CACHELINESIZE
=
32
GOARCH_PCQUANTUM
=
2
GOARCH_MINFRAMESIZE
=
4
;;
sparc
*
-
*
-
*
)
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
...
...
libgo/configure.ac
View file @
fd0c1dd1
...
...
@@ -208,10 +208,10 @@ AC_SUBST(USE_DEJAGNU)
# supported by the gofrontend and all architectures supported by the
# gc toolchain.
# N.B. Keep in sync with gcc/testsuite/go.test/go-test.exp (go-set-goarch).
ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le ppc ppc64 ppc64le s390 s390x sparc sparc64"
ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le ppc ppc64 ppc64le s390 s390x s
h shbe s
parc sparc64"
# All known GOARCH_FAMILY values.
ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 S390 S390X SPARC SPARC64"
ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 PPC PPC64 S390 S390X S
H S
PARC SPARC64"
GOARCH=unknown
GOARCH_FAMILY=unknown
...
...
@@ -366,6 +366,36 @@ GOARCH_MINFRAMESIZE=8
GOARCH_CACHELINESIZE=256
GOARCH_PCQUANTUM=2
;;
sh3eb*-*-*)
GOARCH=shbe
GOARCH_FAMILY=SH
GOARCH_BIGENDIAN=true
GOARCH_CACHELINESIZE=16
GOARCH_PCQUANTUM=2
GOARCH_MINFRAMESIZE=4
;;
sh3*-*-*)
GOARCH=sh
GOARCH_FAMILY=SH
GOARCH_CACHELINESIZE=16
GOARCH_PCQUANTUM=2
GOARCH_MINFRAMESIZE=4
;;
sh4eb*-*-*)
GOARCH=shbe
GOARCH_FAMILY=SH
GOARCH_BIGENDIAN=true
GOARCH_CACHELINESIZE=32
GOARCH_PCQUANTUM=2
GOARCH_MINFRAMESIZE=4
;;
sh4*-*-*)
GOARCH=sh
GOARCH_FAMILY=SH
GOARCH_CACHELINESIZE=32
GOARCH_PCQUANTUM=2
GOARCH_MINFRAMESIZE=4
;;
sparc*-*-*)
AC_COMPILE_IFELSE([
#if defined(__sparcv9) || defined(__arch64__)
...
...
libgo/go/cmd/cgo/main.go
View file @
fd0c1dd1
...
...
@@ -170,6 +170,8 @@ var ptrSizeMap = map[string]int64{
"ppc64le"
:
8
,
"s390"
:
4
,
"s390x"
:
8
,
"sh"
:
4
,
"shbe"
:
4
,
"sparc"
:
4
,
"sparc64"
:
8
,
}
...
...
@@ -192,6 +194,8 @@ var intSizeMap = map[string]int64{
"ppc64le"
:
8
,
"s390"
:
4
,
"s390x"
:
8
,
"sh"
:
4
,
"shbe"
:
4
,
"sparc"
:
4
,
"sparc64"
:
8
,
}
...
...
libgo/go/go/build/syslist.go
View file @
fd0c1dd1
...
...
@@ -5,4 +5,4 @@
package
build
const
goosList
=
"aix android darwin dragonfly freebsd linux nacl netbsd openbsd plan9 solaris windows zos "
const
goarchList
=
"386 amd64 amd64p32 arm armbe arm64 arm64be alpha m68k ppc64 ppc64le mips mipsle mips64 mips64le mips64p32 mips64p32le ppc s390 s390x s
parc sparc64
"
const
goarchList
=
"386 amd64 amd64p32 arm armbe arm64 arm64be alpha m68k ppc64 ppc64le mips mipsle mips64 mips64le mips64p32 mips64p32le ppc s390 s390x s
h shbe sparc sparc64
"
libgo/go/runtime/hash32.go
View file @
fd0c1dd1
...
...
@@ -6,7 +6,7 @@
// xxhash: https://code.google.com/p/xxhash/
// cityhash: https://code.google.com/p/cityhash/
// +build 386 arm armbe m68k mips mipsle ppc s390 sparc
// +build 386 arm armbe m68k mips mipsle ppc s390 s
h shbe s
parc
package
runtime
...
...
libgo/go/runtime/lfstack_32bit.go
View file @
fd0c1dd1
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build 386 arm nacl armbe m68k mips mipsle mips64p32 mips64p32le ppc s390 sparc
// +build 386 arm nacl armbe m68k mips mipsle mips64p32 mips64p32le ppc s390 s
h shbe s
parc
package
runtime
...
...
libgo/go/runtime/unaligned2.go
View file @
fd0c1dd1
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build arm mips mipsle mips64 mips64le armbe m68k sparc alpha ia64 mips64p32 mips64p32le sparc64
// +build arm mips mipsle mips64 mips64le armbe m68k sparc alpha ia64 mips64p32 mips64p32le s
h shbe s
parc64
package
runtime
...
...
libgo/go/syscall/endian_big.go
View file @
fd0c1dd1
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// +build ppc64 s390x mips mips64 armbe arm64be m68k ppc mips64p32 s390 sparc sparc64
// +build ppc64 s390x mips mips64 armbe arm64be m68k ppc mips64p32 s390 s
hbe s
parc sparc64
package
syscall
...
...
libgo/go/syscall/endian_little.go
View file @
fd0c1dd1
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// +build 386 amd64 amd64p32 arm arm64 ppc64le mips64le mipsle alpha ia64 mips64p32le
// +build 386 amd64 amd64p32 arm arm64 ppc64le mips64le mipsle alpha ia64 mips64p32le
sh
package
syscall
...
...
libgo/match.sh
View file @
fd0c1dd1
...
...
@@ -116,7 +116,7 @@ for f in $gofiles; do
aix
|
android
|
darwin
|
dragonfly
|
freebsd
|
linux
|
nacl
|
netbsd
|
openbsd
|
plan9
|
solaris
|
windows
)
tag1
=
nonmatchingtag
;;
386
|
amd64
|
amd64p32
|
arm
|
armbe
|
arm64
|
arm64be
|
alpha
|
ia64
|
m68k
|
ppc64
|
ppc64le
|
mips
|
mipsle
|
mips64
|
mips64le
|
mips64p32
|
mips64p32le
|
ppc
|
s390
|
s390x
|
sparc
|
sparc64
)
386
|
amd64
|
amd64p32
|
arm
|
armbe
|
arm64
|
arm64be
|
alpha
|
ia64
|
m68k
|
ppc64
|
ppc64le
|
mips
|
mipsle
|
mips64
|
mips64le
|
mips64p32
|
mips64p32le
|
ppc
|
s390
|
s390x
|
s
h
|
shbe
|
s
parc
|
sparc64
)
tag1
=
nonmatchingtag
;;
esac
...
...
@@ -128,7 +128,7 @@ for f in $gofiles; do
aix
|
android
|
darwin
|
dragonfly
|
freebsd
|
linux
|
nacl
|
netbsd
|
openbsd
|
plan9
|
solaris
|
windows
)
tag2
=
nonmatchingtag
;;
386
|
amd64
|
amd64p32
|
arm
|
armbe
|
arm64
|
arm64be
|
alpha
|
ia64
|
m68k
|
ppc64
|
ppc64le
|
mips
|
mipsle
|
mips64
|
mips64le
|
mips64p32
|
mips64p32le
|
ppc
|
s390
|
s390x
|
sparc
|
sparc64
)
386
|
amd64
|
amd64p32
|
arm
|
armbe
|
arm64
|
arm64be
|
alpha
|
ia64
|
m68k
|
ppc64
|
ppc64le
|
mips
|
mipsle
|
mips64
|
mips64le
|
mips64p32
|
mips64p32le
|
ppc
|
s390
|
s390x
|
s
h
|
shbe
|
s
parc
|
sparc64
)
tag2
=
nonmatchingtag
;;
esac
...
...
libgo/testsuite/gotest
View file @
fd0c1dd1
...
...
@@ -314,7 +314,7 @@ x)
aix
|
android
|
darwin
|
dragonfly
|
freebsd
|
linux
|
nacl
|
netbsd
|
openbsd
|
plan9
|
solaris
|
windows
)
tag1
=
nonmatchingtag
;;
386
|
amd64
|
amd64p32
|
arm
|
armbe
|
arm64
|
arm64be
|
alpha
|
ia64
|
m68k
|
ppc64
|
ppc64le
|
mips
|
mipsle
|
mips64
|
mips64le
|
mips64p32
|
mips64p32le
|
ppc
|
s390
|
s390x
|
sparc
|
sparc64
)
386
|
amd64
|
amd64p32
|
arm
|
armbe
|
arm64
|
arm64be
|
alpha
|
ia64
|
m68k
|
ppc64
|
ppc64le
|
mips
|
mipsle
|
mips64
|
mips64le
|
mips64p32
|
mips64p32le
|
ppc
|
s390
|
s390x
|
s
h
|
shbe
|
s
parc
|
sparc64
)
tag1
=
nonmatchingtag
;;
esac
...
...
@@ -326,7 +326,7 @@ x)
aix
|
android
|
darwin
|
dragonfly
|
freebsd
|
linux
|
nacl
|
netbsd
|
openbsd
|
plan9
|
solaris
|
windows
)
tag2
=
nonmatchingtag
;;
386
|
amd64
|
amd64p32
|
arm
|
armbe
|
arm64
|
arm64be
|
alpha
|
ia64
|
m68k
|
ppc64
|
ppc64le
|
mips
|
mipsle
|
mips64
|
mips64le
|
mips64p32
|
mips64p32le
|
ppc
|
s390
|
s390x
|
sparc
|
sparc64
)
386
|
amd64
|
amd64p32
|
arm
|
armbe
|
arm64
|
arm64be
|
alpha
|
ia64
|
m68k
|
ppc64
|
ppc64le
|
mips
|
mipsle
|
mips64
|
mips64le
|
mips64p32
|
mips64p32le
|
ppc
|
s390
|
s390x
|
s
h
|
shbe
|
s
parc
|
sparc64
)
tag2
=
nonmatchingtag
;;
esac
...
...
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