xref: /netbsd-src/usr.bin/c89/c89.1 (revision e4aa5bd87dc45e08136e10df749875392edd9e7d)
1*e4aa5bd8Schristos.\"	$NetBSD: c89.1,v 1.1 2016/01/14 04:27:26 christos Exp $
2*e4aa5bd8Schristos.\"
3*e4aa5bd8Schristos.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
4*e4aa5bd8Schristos.\" All rights reserved.
5*e4aa5bd8Schristos.\"
6*e4aa5bd8Schristos.\" Redistribution and use in source and binary forms, with or without
7*e4aa5bd8Schristos.\" modification, are permitted provided that the following conditions
8*e4aa5bd8Schristos.\" are met:
9*e4aa5bd8Schristos.\" 1. Redistributions of source code must retain the above copyright
10*e4aa5bd8Schristos.\"    notice, this list of conditions and the following disclaimer.
11*e4aa5bd8Schristos.\" 2. Redistributions in binary form must reproduce the above copyright
12*e4aa5bd8Schristos.\"    notice, this list of conditions and the following disclaimer in the
13*e4aa5bd8Schristos.\"    documentation and/or other materials provided with the distribution.
14*e4aa5bd8Schristos.\"
15*e4aa5bd8Schristos.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
16*e4aa5bd8Schristos.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17*e4aa5bd8Schristos.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18*e4aa5bd8Schristos.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19*e4aa5bd8Schristos.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20*e4aa5bd8Schristos.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21*e4aa5bd8Schristos.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22*e4aa5bd8Schristos.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23*e4aa5bd8Schristos.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24*e4aa5bd8Schristos.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25*e4aa5bd8Schristos.\" POSSIBILITY OF SUCH DAMAGE.
26*e4aa5bd8Schristos.\"
27*e4aa5bd8Schristos.Dd January 5, 1999
28*e4aa5bd8Schristos.Dt C89 1
29*e4aa5bd8Schristos.Os
30*e4aa5bd8Schristos.Sh NAME
31*e4aa5bd8Schristos.Nm c89
32*e4aa5bd8Schristos.Nd ANSI (1989) C compiler
33*e4aa5bd8Schristos.Sh SYNOPSIS
34*e4aa5bd8Schristos.Nm
35*e4aa5bd8Schristos.Op Fl pedantic
36*e4aa5bd8Schristos.Op Fl pedantic-errors
37*e4aa5bd8Schristos.Op Fl D_ANSI_SOURCE
38*e4aa5bd8Schristos.Op options ...
39*e4aa5bd8Schristos.Sh DESCRIPTION
40*e4aa5bd8SchristosCalls the C compiler (cc) with the given
41*e4aa5bd8Schristos.Ar options ,
42*e4aa5bd8Schristosusing a C language environment compatible with the
43*e4aa5bd8Schristos.St -ansiC
44*e4aa5bd8Schristosspecification.
45*e4aa5bd8Schristos.Pp
46*e4aa5bd8SchristosThis includes proper handling of trigraphs,
47*e4aa5bd8Schristosdisabling non-ANSI compiler features (such as
48*e4aa5bd8Schristos.Ar asm ,
49*e4aa5bd8Schristos.Ar inline ,
50*e4aa5bd8Schristos.Ar typeof ,
51*e4aa5bd8Schristosand the $ character in identifiers),
52*e4aa5bd8Schristosand definition of the preprocessor symbol
53*e4aa5bd8Schristos.Ev __STRICT_ANSI__ .
54*e4aa5bd8Schristos.Pp
55*e4aa5bd8SchristosThe following options are available:
56*e4aa5bd8Schristos.Bl -tag -width "-pedantic-errorsxx"
57*e4aa5bd8Schristos.It Fl pedantic
58*e4aa5bd8SchristosIssue extra warnings defined by ANSI for use of non-ANSI features.
59*e4aa5bd8Schristos.It Fl pedantic-errors
60*e4aa5bd8SchristosIssue errors instead of warnings that normally would be presented by
61*e4aa5bd8Schristos.Fl pedantic .
62*e4aa5bd8Schristos.It Fl D_ANSI_SOURCE
63*e4aa5bd8SchristosTell the system header file set to use an ANSI-conformant "clean" namespace.
64*e4aa5bd8Schristos.El
65*e4aa5bd8Schristos.Sh SEE ALSO
66*e4aa5bd8Schristos.Xr cc 1
67*e4aa5bd8Schristos.Sh STANDARDS
68*e4aa5bd8Schristos.Nm
69*e4aa5bd8Schristosconforms to
70*e4aa5bd8Schristos.St -p1003.2-92 .
71*e4aa5bd8Schristos.Sh HISTORY
72*e4aa5bd8Schristos.Nm
73*e4aa5bd8Schristosappeared in
74*e4aa5bd8Schristos.Nx 1.4 .
75*e4aa5bd8Schristos.Sh BUGS
76*e4aa5bd8SchristosSince
77*e4aa5bd8Schristos.Nm
78*e4aa5bd8Schristosis a shell wrapper script to
79*e4aa5bd8Schristos.Ar cc ,
80*e4aa5bd8Schristoscompile errors are prefixed by "cc:".
81