]> Cypherpunks repositories - gostls13.git/commitdiff
gc: more accurate description of -w and -W switches.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 7 Dec 2011 16:45:30 +0000 (11:45 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 7 Dec 2011 16:45:30 +0000 (11:45 -0500)
The -w switch actually prints steps of the syntax tree walks
while -W prints a summary before and after the walk.

R=golang-dev, rsc
CC=golang-dev, remy
https://golang.org/cl/5444049

src/cmd/gc/lex.c

index 3267fbe389006cfc7def3709763d6e7cabdf2644..cf7bbae9ed12f7b4a2ba340a0f18d935d3b93273 100644 (file)
@@ -137,6 +137,7 @@ usage(void)
        print("  -N disable optimizer\n");
        print("  -S print the assembly language\n");
        print("  -V print the compiler version\n");
+       print("  -W print the parse tree after typing\n");
        print("  -d print declarations\n");
        print("  -e no limit on number of errors printed\n");
        print("  -f print stack frame structure\n");
@@ -146,7 +147,7 @@ usage(void)
        print("  -p assumed import path for this code\n");
        print("  -s disable escape analysis\n");
        print("  -u disable package unsafe\n");
-       print("  -w print the parse tree after typing\n");
+       print("  -w print type checking details\n");
        print("  -x print lex tokens\n");
        exits("usage");
 }