gcc-3.0 pb with macro __STDC_VERSION__
Joseph S. Myers
jsm28@cam.ac.uk
Wed Jun 20 10:59:00 GMT 2001
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
More information about the Gcc-bugs
mailing list