diff options
author | BurnZeZ <brz-9dev@feline.systems> | 2016-03-01 19:00:41 -0500 |
---|---|---|
committer | BurnZeZ <brz-9dev@feline.systems> | 2016-03-01 19:00:41 -0500 |
commit | f0744bae5e02208c748d502ba994360d7049faea (patch) | |
tree | b5279465771353daf51a63595ae3dd5f50f84f41 /sys | |
parent | edec6e6a70d7df83a5c5f3c19d240e72d38a6c55 (diff) |
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'
Diffstat (limited to 'sys')
-rw-r--r-- | sys/src/cmd/cc/lex.c | 24 |
1 files changed, 23 insertions, 1 deletions
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 |