public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/10411: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1)
@ 2003-04-15 19:36 Neil Booth
0 siblings, 0 replies; 4+ messages in thread
From: Neil Booth @ 2003-04-15 19:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/10411; it has been noted by GNATS.
From: Neil Booth <neil@daikokuya.co.uk>
To: grant.jacobs@clear.net.nz
Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Subject: Re: c/10411: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1)
Date: Tue, 15 Apr 2003 20:29:09 +0100
grant.jacobs@clear.net.nz wrote:-
> Why is __STDC_VERSION__ not defined? I've tried this in gcc 2.96 & 3.1:
>
>
> #include <stdio.h>
>
> #if defined __STDC_VERSION__
> #define avail "yes!"
> #else
> #define avail "nope"
> #endif
>
> int main()
> {
> printf( "__STDC__ == '%d'\n", __STDC__ ) ;
> printf( "Is __STDC_VERSION__ defined: %s\n", avail ) ;
> }
>
>
> and it results in:
>
>
> __STDC__ == '1'
> Is __STDC_VERSION__ defined: nope
You're compiling in C89 mode I imagine.
Neil.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c/10411: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1)
@ 2003-04-15 23:01 neil
0 siblings, 0 replies; 4+ messages in thread
From: neil @ 2003-04-15 23:01 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, grant.jacobs, nobody
Synopsis: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1)
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Tue Apr 15 23:01:57 2003
State-Changed-Why:
Not a bug in C90 mode.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10411
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c/10411: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1)
@ 2003-04-15 22:56 Grant Jacobs
0 siblings, 0 replies; 4+ messages in thread
From: Grant Jacobs @ 2003-04-15 22:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/10411; it has been noted by GNATS.
From: Grant Jacobs <grant.jacobs@clear.net.nz>
To: Neil Booth <neil@daikokuya.co.uk>
Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Subject: Re: c/10411: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1)
Date: Wed, 16 Apr 2003 10:56:51 +1200
Yes, you're quite right... sorry. For some reason I thought that ISO
amendment 1 (i.e. 1994) would be the default :( (Never assume and
all that...) I didn't think that the default would be set so far
back! After all 1994 is all of 9 years ago and I'd have naively
thought that the dust would have well and truly settled on any issues
with that amendment by now -- ?
While I'm writing, is there any sense for 'gcc --version' to also
output the default version of the language(s), as I presume this
occasionally changes. At some point, surely, you'll bring the default
up to a more recent standard...?
Grant
At 8:29 PM +0100 15/4/03, Neil Booth wrote:
>grant.jacobs@clear.net.nz wrote:-
>
>> Why is __STDC_VERSION__ not defined? I've tried this in gcc 2.96 & 3.1:
>>
>>
>> #include <stdio.h>
>>
>> #if defined __STDC_VERSION__
>> #define avail "yes!"
>> #else
>> #define avail "nope"
>> #endif
>>
>> int main()
>> {
>> printf( "__STDC__ == '%d'\n", __STDC__ ) ;
>> printf( "Is __STDC_VERSION__ defined: %s\n", avail ) ;
>> }
>>
>>
>> and it results in:
>>
>>
>> __STDC__ == '1'
> > Is __STDC_VERSION__ defined: nope
>
>You're compiling in C89 mode I imagine.
>
>Neil.
--
--------------------------------------------------------
Grant Jacobs grant.jacobs@clear.net.nz
McAndrew Bay, Dunedin, ph. +64 3 476 1820
NEW ZEALAND. fax. +64 3 476 1825
^ permalink raw reply [flat|nested] 4+ messages in thread
* c/10411: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1)
@ 2003-04-15 11:46 grant.jacobs
0 siblings, 0 replies; 4+ messages in thread
From: grant.jacobs @ 2003-04-15 11:46 UTC (permalink / raw)
To: gcc-gnats
>Number: 10411
>Category: c
>Synopsis: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 15 11:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Grant Jacobs
>Release: gcc 2.96/Linux, gcc 3.1/Mac OS X
>Organization:
>Environment:
gcc 2.96/Linux, gcc 3.1/Mac OS X
>Description:
Why is __STDC_VERSION__ not defined? I've tried this in gcc 2.96 & 3.1:
#include <stdio.h>
#if defined __STDC_VERSION__
#define avail "yes!"
#else
#define avail "nope"
#endif
int main()
{
printf( "__STDC__ == '%d'\n", __STDC__ ) ;
printf( "Is __STDC_VERSION__ defined: %s\n", avail ) ;
}
and it results in:
__STDC__ == '1'
Is __STDC_VERSION__ defined: nope
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-04-15 23:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-15 19:36 c/10411: Why is __STDC_VERSION__ not defined? (gcc 2.96 & 3.1) Neil Booth
-- strict thread matches above, loose matches on Subject: below --
2003-04-15 23:01 neil
2003-04-15 22:56 Grant Jacobs
2003-04-15 11:46 grant.jacobs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).