1
0
mirror of https://github.com/golang/go synced 2024-11-20 05:14:41 -07:00
go/src/cmd/5c
Russ Cox cbbc6a102d cmd/5l, cmd/6l, cmd/8l, cmd/cc, cmd/gc: new flag parsing
This CL adds a flag parser that matches the semantics of Go's
package flag. It also changes the linkers and compilers to use
the new flag parser.

Command lines that used to work, like
        8c -FVw
        6c -Dfoo
        5g -I/foo/bar
now need to be split into separate arguments:
        8c -F -V -w
        6c -D foo
        5g -I /foo/bar
The new spacing will work with both old and new tools.

The new parser also allows = for arguments, as in
        6c -D=foo
        5g -I=/foo/bar
but that syntax will not work with the old tools.

In addition to matching standard Go binary flag parsing,
the new flag parser generates more detailed usage messages
and opens the door to long flag names.

The recently added gc flag -= has been renamed -complete.

R=remyoudompheng, daniel.morsing, minux.ma, iant
CC=golang-dev
https://golang.org/cl/7035043
2013-01-06 15:24:47 -05:00
..
cgen.c
doc.go
gc.h cmd/cc: add PREFETCH built-in (like SET, USED) 2012-05-02 16:22:56 -04:00
list.c cmd/5c, cmd/5g, cmd/5l: fix cross compilation failure on darwin 2012-06-08 13:13:02 +10:00
Makefile
mul.c
peep.c cmd/5l, cmd/6l, cmd/8l, cmd/cc, cmd/gc: new flag parsing 2013-01-06 15:24:47 -05:00
reg.c cmd/5c, cmd/5g, cmd/5l: enable use of R12, F8-F15 2012-06-02 12:54:28 -04:00
sgen.c
swt.c cmd/cgo, cmd/cc, cmd/ld: detect dynamic linker automatically 2012-05-05 01:54:16 +08:00
txt.c cmd/5c: fix dataflag annotation 2012-09-25 14:42:44 +08:00