~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/75/755b266828f07dde697879add7106c1092209f89.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Introduce the arm64 goarch.
 
2
 
 
3
Index: b/src/gcc/testsuite/go.test/go-test.exp
 
4
===================================================================
 
5
--- a/src/gcc/testsuite/go.test/go-test.exp
 
6
+++ b/src/gcc/testsuite/go.test/go-test.exp
 
7
@@ -172,6 +172,9 @@ proc go-set-goarch { } {
 
8
     global target_triplet
 
9
 
 
10
     switch -glob $target_triplet {
 
11
+       "aarch64*-*-*" {
 
12
+           set goarch "arm64"
 
13
+       }
 
14
        "alpha*-*-*" {
 
15
            set goarch "alpha"
 
16
        }
 
17
Index: b/src/libgo/configure.ac
 
18
===================================================================
 
19
--- a/src/libgo/configure.ac
 
20
+++ b/src/libgo/configure.ac
 
21
@@ -171,6 +171,7 @@ dnl N.B. Keep in sync with gcc/testsuite
 
22
 is_386=no
 
23
 is_alpha=no
 
24
 is_arm=no
 
25
+is_arm64=no
 
26
 is_m68k=no
 
27
 mips_abi=unknown
 
28
 is_ppc=no
 
29
@@ -184,6 +185,10 @@ case ${host} in
 
30
     is_alpha=yes
 
31
     GOARCH=alpha
 
32
     ;;
 
33
+  aarch64-*-*)
 
34
+    is_arm64=yes
 
35
+    GOARCH=arm64
 
36
+    ;;
 
37
   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
 
38
     is_arm=yes
 
39
     GOARCH=arm
 
40
@@ -264,6 +269,7 @@ esac
 
41
 AM_CONDITIONAL(LIBGO_IS_386, test $is_386 = yes)
 
42
 AM_CONDITIONAL(LIBGO_IS_ALPHA, test $is_alpha = yes)
 
43
 AM_CONDITIONAL(LIBGO_IS_ARM, test $is_arm = yes)
 
44
+AM_CONDITIONAL(LIBGO_IS_ARM64, test $is_arm64 = yes)
 
45
 AM_CONDITIONAL(LIBGO_IS_M68K, test $is_m68k = yes)
 
46
 AM_CONDITIONAL(LIBGO_IS_MIPS, test $mips_abi != unknown)
 
47
 AM_CONDITIONAL(LIBGO_IS_MIPSO32, test $mips_abi = o32)
 
48
Index: b/src/libgo/go/go/build/build.go
 
49
===================================================================
 
50
--- a/src/libgo/go/go/build/build.go
 
51
+++ b/src/libgo/go/go/build/build.go
 
52
@@ -1118,6 +1118,8 @@ func ArchChar(goarch string) (string, er
 
53
                return "6", nil
 
54
        case "arm":
 
55
                return "5", nil
 
56
+       case "arm64":
 
57
+               return "7", nil
 
58
        }
 
59
        return "", errors.New("unsupported GOARCH " + goarch)
 
60
 }
 
61
Index: b/src/libgo/go/go/build/deps_test.go
 
62
===================================================================
 
63
--- a/src/libgo/go/go/build/deps_test.go
 
64
+++ b/src/libgo/go/go/build/deps_test.go
 
65
@@ -360,7 +360,7 @@ func allowed(pkg string) map[string]bool
 
66
 
 
67
 var bools = []bool{false, true}
 
68
 var geese = []string{"darwin", "freebsd", "linux", "netbsd", "openbsd", "plan9", "windows"}
 
69
-var goarches = []string{"386", "amd64", "arm"}
 
70
+var goarches = []string{"386", "amd64", "arm", "arm64"}
 
71
 
 
72
 type osPkg struct {
 
73
        goos, pkg string
 
74
Index: b/src/libgo/go/go/build/syslist.go
 
75
===================================================================
 
76
--- a/src/libgo/go/go/build/syslist.go
 
77
+++ b/src/libgo/go/go/build/syslist.go
 
78
@@ -5,4 +5,4 @@
 
79
 package build
 
80
 
 
81
 const goosList = "darwin dragonfly freebsd linux netbsd openbsd plan9 windows solaris "
 
82
-const goarchList = "386 amd64 arm alpha m68k mipso32 mipsn32 mipsn64 mipso64 ppc ppc64 sparc sparc64 "
 
83
+const goarchList = "386 amd64 arm arm64 alpha m68k mipso32 mipsn32 mipsn64 mipso64 ppc ppc64 sparc sparc64 "
 
84
Index: b/src/libgo/go/runtime/extern.go
 
85
===================================================================
 
86
--- a/src/libgo/go/runtime/extern.go
 
87
+++ b/src/libgo/go/runtime/extern.go
 
88
@@ -170,5 +170,5 @@ func Version() string {
 
89
 const GOOS string = theGoos
 
90
 
 
91
 // GOARCH is the running program's architecture target:
 
92
-// 386, amd64, or arm.
 
93
+// 386, amd64, arm or arm64.
 
94
 const GOARCH string = theGoarch