Article View: muc.lists.netbsd.tech.kern
Article #53Re: Do all -current compilers support C23 typed enum syntax?
From: Greg Troxel
Date: Fri, 04 Dec 2026 13:46
Date: Fri, 04 Dec 2026 13:46
38 lines
2915 bytes
2915 bytes
Taylor R Campbell <riastradh@NetBSD.org> writes: > The discussion prompting the change from -std=gnu99 to -std=gnu11 was > here: > > https://mail-index.netbsd.org/tech-kern/2025/01/05/msg029919.html > > With some followon discussion about -std=gnu11 vs -std=c11 and why > switching to the latter is a bad idea: > > PR toolchain/58969: use of alloca is warning, not error, with -std=c11 > https://gnats.netbsd.org/58969 > > C11 has been mostly uncontroversial, in contrast to C23, so it wasn't > a big discussion. In that case, it seems like # NetBSD sources use C99 style, with some GCC extensions. should be rewritten, and perhaps psearated into a normative statement about what ought to be, and descriptive statements about what is and the resulting accomodations. The phrase "C99 style" is confusing; I think it refers to a language specification rather than beyond-standards source code formatting and whitespace rules. And sounds good on atf to check things. Personally I'm ok with ditching C89 and saying we're in an all-C99 world, but it would be interesting if others saw that differently. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<rmizeuljh0c.fsf@s1.lexort.com>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<20261204024317.C5FCA84DD6@mail.netbsd.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Greg Troxel <gdt@lexort.com> Newsgroups: muc.lists.netbsd.tech.kern Subject: Re: Do all -current compilers support C23 typed enum syntax? Date: Fri, 04 Dec 2026 08:46:11 -0500 Organization: Newsgate at muc.de e.V. Sender: tech-kern-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <rmizeuljh0c.fsf@s1.lexort.com> References: <20261204024317.C5FCA84DD6@mail.netbsd.org> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="57770"; mail-complaints-to="news-admin@muc.de" User-Agent: Gnus/5.13 (Gnus v5.13) Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=lexort.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lexort.com; s=mail; t=1796391971; bh=GIyhLmuiirnKgTWmFzG6x1+EaAAtcRQMOIFUxCcIKwA=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=dswAKfCb1OJFV5K/PLCIzPdv0l+Wo854+wlc2UP36bc3golRmVkCmt1+4kthN2ibI ymFw6FBUcg9tTMJTBJ8JueJH4eXzsSXpdjiKgWq3dWRGCHS45avFo3J4kCb3mIL/Rc wDVAlBGLU2+yNHo8+O8wWz7/n9bFAkHnD+zliegY= In-Reply-To: <20261204024317.C5FCA84DD6@mail.netbsd.org> (Taylor R. Campbell's message of "Fri, 4 Dec 2026 02:43:17 +0000") OpenPGP: id=098ED60E Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes