From: Charles M Richmond <cmr@iisc.com>
Subject: Re: Dec C pecularity
Date: 1999/07/13 [thread overview]
Message-ID: <378B19C3.A92F8D15@iisc.com> (raw)
In-Reply-To: 87673onc42.fsf@romulus.bland.fido.de
Tobias Ernst wrote:
> Please be careful about accusing others not having done basic RTFM.
> The manpage of cc on our system says that "-std" is the default for
> cc, while actually the given example of code works if I specify
> -std, but it doesn't if it don't.
In the older man page one finds:
Man cc
...
...
-std[n]
Directs the compiler to produce warnings for language constructs that
are not standard in the language. The default is -std0.
The following values are accepted:
-std
Enforces the ANSI C standard, but allows some common programming
practices disallowed by the standard. The -std flag causes the
macro __STDC__=0 to be passed to the preprocessor.
-std0
Enforces the K & R programming style, with certain ANSI extensions
in areas where the K & R behavior is undefined or ambiguous. In
general, -std0 compiles most pre-ANSI C programs and produces
expected results. The -std0 flag causes the __STDC__ macro to be
undefined.
...
...
While on the newer man page it leaps off of the first screen with:
cc(1)
cc(1)
NAME
cc - C compiler
SYNOPSIS
cc [-newc] [flag ...] file ...
cc -oldc [flag ...] file ...
cc -migrate [flag ...] file ...
Default Flags:
cc -newc -assume aligned_objects -cpp -call_shared -double -fprm n -fptm
n
-g0 -I/usr/include -inline manual -member_alignment -no_fp_reorder
-no_misalign -object -O1 -oldcomment -p0 -no_pg -preempt_symbol -signed
-arch generic -std0 -tune generic -writable_strings
Note
In a future release of DIGITAL UNIX, the default DEC C language-mode
flag will be changed from -std0 (K&R programming style, pre-ANSI C
standard) to -std (ANSI C standard - with some relaxations).
*********
So yes.... RTFM
--
***********************************************************************
* Charles Richmond Integrated International Systems Corporation *
* cmr@iisc.com cmr@acm.org cmr@shore.net *
* UNIX Internals, I18N, L10N, X, Realtime Imaging, and Custom S/W *
* One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 *
* (617) 723 7695 FAX (617) 723 6861 Remote (617) 504 3379 *
***********************************************************************
next prev parent reply other threads:[~1999-07-13 4:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-09 4:00 Dec C pecularity Bernhard Reiter
1999-06-11 4:00 ` Jeff Sullivan
1999-06-13 4:00 ` Tobias Ernst
1999-06-14 4:00 ` Peter da Silva
1999-06-26 4:00 ` Tobias Ernst
1999-06-29 4:00 ` Charles M Richmond
1999-07-13 4:00 ` Tobias Ernst
1999-07-13 4:00 ` Kevin Oberman
1999-07-13 4:00 ` Charles M Richmond [this message]
1999-07-14 4:00 ` T.E.Dickey
1999-07-15 4:00 ` libcurses and patches for 4.0 jhitchcock
1999-07-16 4:00 ` T.E.Dickey
1999-08-10 4:00 ` b_andreasen
1999-07-16 4:00 ` Dec C pecularity Tobias Ernst
1999-07-18 4:00 ` T.E.Dickey
1999-07-14 4:00 ` T.E.Dickey
1999-06-22 4:00 ` Jeff Sullivan
1999-06-22 4:00 ` Jeff Sullivan
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox