From f0744bae5e02208c748d502ba994360d7049faea Mon Sep 17 00:00:00 2001 From: BurnZeZ Date: Tue, 1 Mar 2016 19:00:41 -0500 Subject: cc: populate the flag list comment in lex.c This way the various compiler flags are documented somewhere, even if not in full. Also fixed a typo. 'r' should have been 'R' --- sys/src/cmd/cc/lex.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/sys/src/cmd/cc/lex.c b/sys/src/cmd/cc/lex.c index ec202a88e..837cf668c 100644 --- a/sys/src/cmd/cc/lex.c +++ b/sys/src/cmd/cc/lex.c @@ -7,32 +7,54 @@ /* * known debug flags + * flags without a description may be exclusive to certain architectures * -. Inhibit search for includes in source directory + * -0 + * -4 + * -8 + * -< * -A !B * -B non ANSI + * -C * -D name define * -F format specification check + * -G + * -H * -I path include * -L print every NAME symbol * -M constant multiplication + * -N + * -P peephole + * -Q + * -R print registerization * -S print assembly + * -T * -V enable void* conversion warnings + * -W * -X abort on error + * -Y + * -Z * -a acid declaration output + * -c * -d print declarations + * -e + * -f + * -g + * -h * -i print initialization * -l generate little-endian code * -m print add/sub/mul trees * -n print acid to file (%.c=%.acid) (with -a or -aa) * -o file output file * -p use standard cpp ANSI preprocessor (not on windows) - * -r print registerization * -s print structure offsets (with -a or -aa) * -t print type trees * -v verbose printing * -w print warnings + * -x + * -y */ void -- cgit v1.2.3