• Russ Cox's avatar
    cmd/5l, cmd/6l, cmd/8l, cmd/cc, cmd/gc: new flag parsing · cbbc6a10
    Russ Cox authored
    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
    cbbc6a10
Name
Last commit
Last update
..
Makefile Loading commit data...
acid.c Loading commit data...
bits.c Loading commit data...
cc.h Loading commit data...
cc.y Loading commit data...
com.c Loading commit data...
com64.c Loading commit data...
dcl.c Loading commit data...
doc.go Loading commit data...
dpchk.c Loading commit data...
funct.c Loading commit data...
godefs.c Loading commit data...
lex.c Loading commit data...
lexbody Loading commit data...
mac.c Loading commit data...
macbody Loading commit data...
omachcap.c Loading commit data...
pgen.c Loading commit data...
pswt.c Loading commit data...
scon.c Loading commit data...
sub.c Loading commit data...
y.tab.c Loading commit data...
y.tab.h Loading commit data...