aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sparse.1
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-05-29 00:29:46 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-12-29 22:42:45 +0100
commitd1ad9561e9cd43373f692394567f627230a511d1 (patch)
treea8017d22f5c1a75edee3f03f556a26fb1e76047c /sparse.1
parent95ae484069ebcf6d2d1f754451f898b0f23d3211 (diff)
downloadsparse-dev-d1ad9561e9cd43373f692394567f627230a511d1.tar.gz
add support for '-f[no-][un]signed-char'
Till now, sparse's plain chars where signed with no possibility to change it. This is a problem when using sparse on code for architectures like ARM where chars are by default unsigned or simply for code compiled with GCC's '-f[no-][un]signed-char'. Change this by parsing these options and adjusting the type of plain chars accordingly. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'sparse.1')
-rw-r--r--sparse.15
1 files changed, 5 insertions, 0 deletions
diff --git a/sparse.1 b/sparse.1
index 5b2bcd9c..efb01293 100644
--- a/sparse.1
+++ b/sparse.1
@@ -381,6 +381,11 @@ Set the distance between tab stops. This helps sparse report correct
column numbers in warnings or errors. If the value is less than 1 or
greater than 100, the option is ignored. The default is 8.
.
+.TP
+.B \-f[no-]unsigned-char, \-f[no-]signed-char
+Let plain 'char' be unsigned or signed.
+By default chars are signed.
+.
.SH SEE ALSO
.BR cgcc (1)
.