]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/9g, etc: remove // fallthrough comments
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 23 Apr 2015 23:36:52 +0000 (16:36 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 23 Apr 2015 23:46:19 +0000 (23:46 +0000)
They are vestiges of the c2go transition.

Change-Id: I22672e40373ef77d7a0bf69cfff8017e46353055
Reviewed-on: https://go-review.googlesource.com/9265
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/9g/gsubr.go
src/cmd/internal/gc/dcl.go
src/cmd/internal/gc/esc.go
src/cmd/internal/gc/export.go
src/cmd/internal/gc/fmt.go
src/cmd/internal/gc/gen.go
src/cmd/internal/gc/inl.go
src/cmd/internal/gc/walk.go
src/cmd/internal/ld/dwarf.go
src/cmd/internal/ld/elf.go

index 86ea01a3d5a4196c535bcc6fc5228f8af87fda0c..8223fe70b1f273a03ef316aff4bed37ec3f51ec6 100644 (file)
@@ -936,11 +936,10 @@ func optoas(op int, t *gc.Type) int {
                gc.OMUL<<16 | gc.TUINT32,
                gc.OMUL<<16 | gc.TPTR32,
                // don't use word multiply, the high 32-bit are undefined.
-               // fallthrough
                gc.OMUL<<16 | gc.TUINT64,
                gc.OMUL<<16 | gc.TPTR64:
-               a = ppc64.AMULLD
                // for 64-bit multiplies, signedness doesn't matter.
+               a = ppc64.AMULLD
 
        case gc.OMUL<<16 | gc.TFLOAT32:
                a = ppc64.AFMULS
index a1f85543de4fad49d52379e4e901b10430c5e220..08d2469094b307b687bd55aab886645cfd450283 100644 (file)
@@ -836,7 +836,6 @@ func structfield(n *Node) *Type {
                Yyerror("field annotation must be string")
                fallthrough
 
-               // fallthrough
        case CTxxx:
                f.Note = nil
        }
index fe2cda3e95cb358cc9140255ffd2b524b9527c42..8d195cdb41a953232b80ab53ca6f19c3c12a0562 100644 (file)
@@ -729,7 +729,6 @@ func esc(e *EscState, n *Node, up *Node) {
                }
                fallthrough
 
-               // fallthrough
        case OMAKECHAN,
                OMAKEMAP,
                OMAKESLICE,
@@ -903,7 +902,6 @@ func escassign(e *EscState, dst *Node, src *Node) {
                fallthrough
 
                // Conversions, field access, slice all preserve the input value.
-       // fallthrough
        case OCONV,
                OCONVNOP,
                ODOTMETH,
index c9d11d5ced514659f89ff8fc7265b12b91af66fa..1efc8150c51f5ecc4964bc569cc195058b98c7e9 100644 (file)
@@ -119,7 +119,6 @@ func reexportdep(n *Node) {
                        }
                        fallthrough
 
-                       // fallthrough
                case PEXTERN:
                        if n.Sym != nil && !exportedsym(n.Sym) {
                                if Debug['E'] != 0 {
@@ -160,7 +159,6 @@ func reexportdep(n *Node) {
                }
                fallthrough
 
-               // fallthrough
        case OTYPE:
                if n.Sym != nil && !exportedsym(n.Sym) {
                        if Debug['E'] != 0 {
index eaf591bebd8e54add5aaf060b7b97013be36a73f..547b873a180543b4fc0b812dcd31946ecc88826a 100644 (file)
@@ -514,7 +514,6 @@ func typefmt(t *Type, flag int) string {
                        }
                        fallthrough
 
-                       // fallthrough
                case FExp:
                        if t.Sym.Pkg == localpkg && t.Vargen != 0 {
                                return fmt.Sprintf("%v·%d", t.Sym, t.Vargen)
@@ -847,7 +846,6 @@ func stmtfmt(n *Node) string {
                }
                fallthrough
 
-               // fallthrough
        case OAS2DOTTYPE, OAS2FUNC, OAS2MAPR, OAS2RECV:
                f += fmt.Sprintf("%v = %v", Hconv(n.List, obj.FmtComma), Hconv(n.Rlist, obj.FmtComma))
 
@@ -1257,8 +1255,6 @@ func exprfmt(n *Node, prec int) string {
                }
                fallthrough
 
-               // fallthrough
-
        case OARRAYLIT, OMAPLIT:
                if fmtmode == FErr {
                        return fmt.Sprintf("%v literal", n.Type)
index 620ef3bc5d12afc08a0bcfad74f68ad8b61c6b6e..dda33c9dd8d38301558943fceec945bf3a4bccbc 100644 (file)
@@ -68,8 +68,6 @@ func addrescapes(n *Node) {
                        n.Stackparam.Xoffset = n.Xoffset
                        fallthrough
 
-                       // fallthrough
-
                case PAUTO:
                        n.Class |= PHEAP
 
index 71e95947175922d67f0512b7cd3ed5e9f3d969d4..dd2087dec3d107b0b4b2459afb3b934eaf93db4c 100644 (file)
@@ -400,7 +400,6 @@ func inlnode(np **Node) {
                }
                fallthrough
 
-               // fallthrough
        default:
                for l := n.List; l != nil; l = l.Next {
                        if l.N.Op == OINLCALL {
@@ -421,7 +420,6 @@ func inlnode(np **Node) {
                }
                fallthrough
 
-               // fallthrough
        default:
                for l := n.Rlist; l != nil; l = l.Next {
                        if l.N.Op == OINLCALL {
index 0bdc4888ef6cfef3c8682e3ee1b3195ca55092d1..72fac03371538f8823e20db92b4a62da72e18248 100644 (file)
@@ -1271,7 +1271,6 @@ func walkexpr(np **Node, init **NodeList) {
                }
                fallthrough
 
-               // fallthrough
        case OSLICEARR, OSLICESTR:
                if n.Right == nil { // already processed
                        goto ret
index 6468f393cb986af7e52308a0f77a0c2fde8edb8f..ec540fdd77e5a490818866f7ff8981d26a374e32 100644 (file)
@@ -1435,7 +1435,6 @@ func defdwsymb(sym *LSym, s string, t int, v int64, size int64, ver int, gotype
                }
                fallthrough
 
-               // fallthrough
        case 'a', 'p':
                dt = defgotype(gotype)
        }
index f2f269f78d09a72dc588942310a682819ca33bd9..b56a8072ebcee21246ac64ff79db7da9c45bb5ee 100644 (file)
@@ -781,7 +781,6 @@ func Elfinit() {
                }
                fallthrough
 
-               // fallthrough
        default:
                ehdr.phoff = ELF32HDRSIZE
                /* Must be be ELF32HDRSIZE: first PHdr must follow ELF header */