Article View: comp.std.c
Article #5668Re: Re: POSIX, ANSI C, and __STDC__
From: Walter Murray
Date: Mon, 23 Jan 1989 17:57
Date: Mon, 23 Jan 1989 17:57
24 lines
1451 bytes
1451 bytes
Excerpts from D.F.Prosser's note:
> cc -Xt ("transition", the default mode)
> In those few places where ANSI C requires different semantics
> (what the ANSI C Rationale calls QUIET CHANGES), a warning will
> be issued, but the old semantics will be used. The big example
> is value- vs. unsigned-preserving promotion rules.
>Thus, the (obvious) solution was to always pre-#define __STDC__, but
>have its value be 0 for -Xt and -Xa.
>I would propose that __STDC__ be #defined to be 0 in C compilation systems
>that meet all ANSI C conformance requires except for:
> 1. the inclusion of nonconforming "common extensions" listed in A.6.5,
> 2. not issuing otherwise required diagnostics when language extensions
> are used, and/or
> 3. extra names declared or defined in standard headers.
Am I missing something, or is there a contradiction here? Your
"transition" mode seems to violate your proposal, in that it defines
__STDC__ to be 0, yet follows unsigned-preserving promotion rules.
Walter Murray
----------
Technical Details
Message-ID:
<12570004@hpclwjm.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!hpcuhb!hpcllla!hpclisp!hpclwjm!walterReferences:
<915@sfmin.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpda!hpcuhb!hpcllla!hpclisp!hpclwjm!walter From: walter@hpclwjm.HP.COM (Walter Murray) Newsgroups: comp.std.c Subject: Re: Re: POSIX, ANSI C, and __STDC__ Message-ID: <12570004@hpclwjm.HP.COM> Date: 23 Jan 89 17:57:32 GMT References: <915@sfmin.UUCP> Organization: Hewlett-Packard Calif. Language Lab Lines: 24