]> gcc.gnu.org Git - gcc.git/commitdiff
libgo: add riscv and js/wasm as known targets
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 11 Jun 2018 19:16:34 +0000 (19:16 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 11 Jun 2018 19:16:34 +0000 (19:16 +0000)
    Incorporates cut down versions of https://golang.org/cl/102835 and
    https://golang.org/cl/106256 from the master sources.

    This will tell go/build to skip files with those tags.

    Reviewed-on: https://go-review.googlesource.com/117996

From-SVN: r261451

gcc/go/gofrontend/MERGE
libgo/configure
libgo/configure.ac
libgo/go/go/build/syslist.go
libgo/go/go/types/sizes.go
libgo/goarch.sh

index 4c27161d412a91543add559fbe3f48da29d46abd..0b28a5bd21f860421f632a84af3f2a4ada72c624 100644 (file)
@@ -1,4 +1,4 @@
-3ec698690d2a8ecbf115489f17d85e848a2f7293
+bfe3a9b26c8b2e1b9ef34a7232a2d1529e639bbf
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 11e04aafc8bba672de7876992aec5e7a26bb25fe..66942edaa7a187b818b827f8c1b271998c59bcb9 100755 (executable)
@@ -13653,10 +13653,10 @@ esac
 #   - libgo/go/syscall/endian_XX.go
 #   - possibly others
 # - possibly update files in libgo/go/internal/syscall/unix
-ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le nios2 ppc ppc64 ppc64le riscv64 s390 s390x sh shbe sparc sparc64"
+ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le nios2 ppc ppc64 ppc64le riscv riscv64 s390 s390x sh shbe sparc sparc64 wasm"
 
 # All known GOARCH family values.
-ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV64 S390 S390X SH SPARC SPARC64"
+ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
 
 GOARCH=unknown
 case ${host} in
index 9f4bf50b22bc4c2535bd907097071ceedeb07574..3cee2c0fcb98baba2018cbd3e6b2e8ec35009f50 100644 (file)
@@ -224,10 +224,10 @@ AC_SUBST(USE_DEJAGNU)
 #   - libgo/go/syscall/endian_XX.go
 #   - possibly others
 # - possibly update files in libgo/go/internal/syscall/unix
-ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le nios2 ppc ppc64 ppc64le riscv64 s390 s390x sh shbe sparc sparc64"
+ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le nios2 ppc ppc64 ppc64le riscv riscv64 s390 s390x sh shbe sparc sparc64 wasm"
 
 # All known GOARCH family values.
-ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV64 S390 S390X SH SPARC SPARC64"
+ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
 
 GOARCH=unknown
 case ${host} in
index 0c3963463815ae9ca3c7bd87f688158858d44df8..baa957212ea68fd5447cc4393a7d8efe33490de4 100644 (file)
@@ -4,5 +4,5 @@
 
 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 nios2 ppc riscv64 s390 s390x sh shbe sparc sparc64"
+const goosList = "aix android darwin dragonfly freebsd js 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 nios2 ppc riscv riscv64 s390 s390x sh shbe sparc sparc64 wasm "
index 05d14dae132bfa3238088a4361189376315dbd3e..13e2abb5defd8bcabe85740787842971278c12ab 100644 (file)
@@ -167,6 +167,7 @@ var gcArchSizes = map[string]*StdSizes{
        "ppc64":    {8, 8},
        "ppc64le":  {8, 8},
        "s390x":    {8, 8},
+       "wasm":     {8, 8},
        // When adding more architectures here,
        // update the doc string of SizesFor below.
 }
@@ -176,7 +177,7 @@ var gcArchSizes = map[string]*StdSizes{
 //
 // Supported architectures for compiler "gc":
 // "386", "arm", "arm64", "amd64", "amd64p32", "mips", "mipsle",
-// "mips64", "mips64le", "ppc64", "ppc64le", "s390x".
+// "mips64", "mips64le", "ppc64", "ppc64le", "s390x", "wasm".
 func SizesFor(compiler, arch string) Sizes {
        var m map[string]*StdSizes
        switch compiler {
index 11bca7bb18f041986878b77489f3c400a54f9115..f5c0a34b1da2763d79eafc2453a59fe13b78129d 100755 (executable)
@@ -153,6 +153,11 @@ case $goarch in
                ;;
        esac
        ;;
+    riscv)
+       family=RISCV
+       pcquantum=2
+       ptrsize=4
+       ;;
     riscv64)
        family=RISCV64
        pcquantum=2
@@ -198,6 +203,10 @@ case $goarch in
        defaultphyspagesize=8192
        pcquantum=4
        ;;
+    wasm)
+       family=WASM
+       defaultphyspagesize=65536
+       ;;
     *)
        echo 1>&2 "unrecognized goarch value \"$goarch\""
        exit 1
This page took 0.087162 seconds and 5 git commands to generate.