This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-3.0 pb with macro __STDC_VERSION__
- To: Guillaume Rumeau <rumeau at isty-info dot uvsq dot fr>
- Subject: Re: gcc-3.0 pb with macro __STDC_VERSION__
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Wed, 20 Jun 2001 18:59:42 +0100 (BST)
- cc: <gcc-bugs at gcc dot gnu dot org>
On 20 Jun 2001, Guillaume Rumeau wrote:
> printf("C Version value = %ld\n", __STDC_VERSION__) ;
2.95.2 didn't handle the differences between C89 and C94. 3.0 does; in
particular, the default version is gnu89, which has been clarified to be
C89, plus GNU extensions, which include digraphs from C94 but not the %ls
%lc %l[ printf/scanf formats (so -pedantic, with no other standard option,
will warn about those, which I think is the most useful behaviour for now
for those users, such as GCC itself, of -pedantic without -std). C89
didn't include __STDC_VERSION__, so it is no longer defined by gnu89.
--
Joseph S. Myers
jsm28@cam.ac.uk