shithub: riscv

Download patch

ref: f0744bae5e02208c748d502ba994360d7049faea
parent: edec6e6a70d7df83a5c5f3c19d240e72d38a6c55
author: BurnZeZ <[email protected]>
date: Tue Mar 1 14:00:41 EST 2016

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'

--- a/sys/src/cmd/cc/lex.c
+++ b/sys/src/cmd/cc/lex.c
@@ -7,21 +7,42 @@
 
 /*
  * 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
@@ -28,11 +49,12 @@
  *	-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