cmd/go: don't lose last flag from _cgo_flags
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 5 Feb 2018 01:38:34 +0000 (01:38 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 5 Feb 2018 01:38:34 +0000 (01:38 +0000)
commit59597e373547a60ee635083f06ef322f8537f7c0
tree6ec8b83dfacb7196cfc08401ace4fa0a2def9067
parent56d6cc37bde81bb79abc0540346dc414e148ce29
cmd/go: don't lose last flag from _cgo_flags

    The quoting code that read _cgo_flags, currently only in the gccgo
    version of cmd/go, was losing the last flag read from the file.

    Fixes golang/go#23666

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

From-SVN: r257373
gcc/go/gofrontend/MERGE
libgo/go/cmd/go/internal/work/gccgo.go