From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3185 invoked by alias); 11 Feb 2010 14:55:56 -0000 Received: (qmail 3104 invoked by uid 22791); 11 Feb 2010 14:55:54 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f218.google.com (HELO mail-fx0-f218.google.com) (209.85.220.218) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Feb 2010 14:55:50 +0000 Received: by fxm10 with SMTP id 10so1255453fxm.29 for ; Thu, 11 Feb 2010 06:55:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.239.159.203 with SMTP id z11mr213964hbc.183.1265900147179; Thu, 11 Feb 2010 06:55:47 -0800 (PST) In-Reply-To: References: <87a8dc11002110544q2531b46x8344c74f70b1b556@mail.gmail.com> From: Alexey Salmin Date: Thu, 11 Feb 2010 14:58:00 -0000 Message-ID: <87a8dc11002110655u41f0aa65q6c5d287ad4ff9ddd@mail.gmail.com> Subject: Re: Why is gcc going to default to "GNU dialect of ISO C99?" To: gcc-help@gcc.gnu.org Cc: "John (Eljay) Love-Jensen" Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-02/txt/msg00169.txt.bz2 On Thu, Feb 11, 2010 at 8:43 PM, John (Eljay) Love-Jensen wrote: > Hi Alexey, > >> It's not ANSI C compliant. > > It's ISO C 1999 compliant. > >> And since GNU89 is default for C code... > > GNU99 is default of C code, with my GCC (4.0). > > I am not sure which GCC version switched from GNU89 to GNU99. > > I would expect a GCC of 2005 vintage (e.g., GCC 4.0) to compile C99 code. > > Sincerely, > --Eljay > If you read the mail in the beginning of this thread you'll see that http://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html#C-Dialect-Options says: `gnu89' GNU dialect of ISO C90 (including some C99 features). (!) This is the default for C code. (!) `gnu99' `gnu9x' GNU dialect of ISO C99. When ISO C99 is fully implemented in GCC, this (!) will become the default (!). The name `gnu9x' is deprecated. Same info is in my gcc doc (4.4.2, from Debain Sid) BUT: WHATEVER! I was trying to tell you a funny story, nothing more. Don't waste your time trying to find there some fundamental statements or something. Alexey