aboutsummaryrefslogtreecommitdiff
path: root/cgcc.1
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2007-09-15 12:42:33 -0700
committerJosh Triplett <josh@freedesktop.org>2007-09-15 12:42:33 -0700
commit6f0a86bb5250df64a0755ee5009478adb2a4967f (patch)
tree74311561cb2286f189f3da62a382f529c1d14e60 /cgcc.1
parentAdd test-suite annotations to init-char-array.c (diff)
downloadsparse-6f0a86bb5250df64a0755ee5009478adb2a4967f.tar.gz
sparse-6f0a86bb5250df64a0755ee5009478adb2a4967f.tar.bz2
sparse-6f0a86bb5250df64a0755ee5009478adb2a4967f.zip
Add a manpage for cgcc
Signed-off-by: Josh Triplett <josh@freedesktop.org>
Diffstat (limited to 'cgcc.1')
-rw-r--r--cgcc.137
1 files changed, 37 insertions, 0 deletions
diff --git a/cgcc.1 b/cgcc.1
new file mode 100644
index 0000000..227c02b
--- /dev/null
+++ b/cgcc.1
@@ -0,0 +1,37 @@
+.\" cgcc manpage by Josh Triplett
+.TH cgcc "1"
+.
+.SH NAME
+cgcc \- Compiler wrapper to run Sparse after compiling
+.
+.SH SYNOPSIS
+.B cgcc
+[\fISPARSE OPTIONS\fR]... [\fICOMPILER OPTIONS\fR]... [\fIINPUT FILES\fR]...
+.br
+.B make CC=cgcc
+.
+.SH DESCRIPTION
+\fBcgcc\fR provides a wrapper around a C compiler (\fBcc\fR by
+default) which also invokes the Sparse static analysis tool.
+.P
+\fBcgcc\fR accepts all Sparse command-line options, such as warning
+options, and passes all other options through to the compiler.
+.P
+By providing the same interface as the C compiler, \fBcgcc\fR allows
+projects to run Sparse as part of their build without modifying their
+build system, by using \fBcgcc\fR as the compiler. For many projects,
+setting \fBCC=cgcc\fR on the \fBmake\fR command-line will work.
+.
+.SH ENVIRONMENT
+.TP
+.B REAL_CC
+If set, \fBcgcc\fR will use this as the compiler to invoke, rather
+than the default \fBcc\fR.
+.
+.TP
+.B CHECK
+If set, \fBcgcc\fR will use this as the Sparse program to invoke,
+rather than the default \fBsparse\fR.
+.
+.SH SEE ALSO
+.BR sparse (1)