This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc-3.0 pb with macro __STDC_VERSION__


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]