aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorEitan Adler <lists@eitanadler.com>2017-03-05 09:14:38 -0800
committerIan Lance Taylor <iant@golang.org>2017-03-06 04:39:12 +0000
commit789c5255a4ee2bca8906baa15fc3e400054ff44d (patch)
tree80ccd03eb87a1dab0503a64c52eb3be0a834de06 /src/cmd
parent694f9e36aa508116b8fd0bf2c42e680f2937dd56 (diff)
downloadgo-789c5255a4ee2bca8906baa15fc3e400054ff44d.tar.xz
all: remove the the duplicate words
Change-Id: I6343c162e27e2e492547c96f1fc504909b1c03c0 Reviewed-on: https://go-review.googlesource.com/37793 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/compile/internal/ssa/rewrite_test.go2
-rw-r--r--src/cmd/compile/internal/x86/387.go2
-rw-r--r--src/cmd/internal/obj/link.go2
-rw-r--r--src/cmd/internal/obj/objfile.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/compile/internal/ssa/rewrite_test.go b/src/cmd/compile/internal/ssa/rewrite_test.go
index 7bd32ff1b2..c21c64bb7b 100644
--- a/src/cmd/compile/internal/ssa/rewrite_test.go
+++ b/src/cmd/compile/internal/ssa/rewrite_test.go
@@ -25,7 +25,7 @@ func TestNlzNto(t *testing.T) {
// construct the bit pattern 000...111, with bit 33 set as well.
for i := int64(0); i < 64; i++ {
tx := x | (1 << 32)
- // nto should be the the number of bits we've shifted on, with an extra bit
+ // nto should be the number of bits we've shifted on, with an extra bit
// at iter 32
ntoExp := i
if ntoExp == 32 {
diff --git a/src/cmd/compile/internal/x86/387.go b/src/cmd/compile/internal/x86/387.go
index ea62ce31ff..a09ed8fa95 100644
--- a/src/cmd/compile/internal/x86/387.go
+++ b/src/cmd/compile/internal/x86/387.go
@@ -299,7 +299,7 @@ func ssaGenValue387(s *gc.SSAGenState, v *ssa.Value) bool {
return true
case ssa.Op386CALLstatic, ssa.Op386CALLclosure, ssa.Op386CALLdefer, ssa.Op386CALLgo, ssa.Op386CALLinter:
- flush387(s) // Calls must empty the the FP stack.
+ flush387(s) // Calls must empty the FP stack.
return false // then issue the call as normal
}
return false
diff --git a/src/cmd/internal/obj/link.go b/src/cmd/internal/obj/link.go
index 83a1f4cfbf..296691b23a 100644
--- a/src/cmd/internal/obj/link.go
+++ b/src/cmd/internal/obj/link.go
@@ -655,7 +655,7 @@ const (
R_ADDRPOWER_PCREL
// R_ADDRPOWER_TOCREL relocates two D-form instructions like R_ADDRPOWER, but
- // inserts the offset from the TOC to the address of the the relocated symbol
+ // inserts the offset from the TOC to the address of the relocated symbol
// rather than the symbol's address.
R_ADDRPOWER_TOCREL
diff --git a/src/cmd/internal/obj/objfile.go b/src/cmd/internal/obj/objfile.go
index 3be34d9fbe..9e0ce59691 100644
--- a/src/cmd/internal/obj/objfile.go
+++ b/src/cmd/internal/obj/objfile.go
@@ -129,7 +129,7 @@ type objWriter struct {
// Temporary buffer for zigzag int writing.
varintbuf [10]uint8
- // Provide the the index of a symbol reference by symbol name.
+ // Provide the index of a symbol reference by symbol name.
// One map for versioned symbols and one for unversioned symbols.
// Used for deduplicating the symbol reference list.
refIdx map[string]int