šŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.netbsd.tech.kern
Article #44

Re: Do all -current compilers support C23 typed enum syntax?

#44
From: Greg Troxel
Date: Fri, 04 Dec 2026 01:30
40 lines
3340 bytes
Chris Hanson <cmhanson@eschatologist.net> writes:

> It sounds like this is the approach I should take in what I’m hacking
> on in order to enable compilation in older language modes.

I think what's appropriate is for you to propose specific changes to the
existing rules to core@ and then follow what core@ decides.

/usr/share/misc/style doesn't specifically allow or prohibit writing in
any particular C sublanguage.  That's either a bug, or just that it's in
/usr/share/mk/bsd.sys.mk.

bsd.sys.mk says:

  # NetBSD sources use C99 style, with some GCC extensions.
  # Coverity does not like -std=gnu99 (XXX untested but likely not gnu11 either)
  #
  # XXX Ideally we would not rely on GNU extensions, but currently some
  # code uses alloca(3) which -std=c11 compiles broken-at-runtime.  Until
  # we fix that (PR toolchain/58969: use of alloca is warning, not error,
  # with -std=c11), we have to continue using -std=gnu11 and not
  # -std=c11.

That should probably be checked and clarified, as there's no explanation
of why after saying C99 it's gnu11/c11 being discussed.  Overall I read
it as "sources should be C99, and it's a bug to need C11 or gnu
extensions, but that's where we are", but I'm not at all sure I'm
getting it right.



I'm not saying I'm entirely opposed to what you want to do -- just that
it's a big deal to use new language standards, and that changing our
norms on that is for core@ to decide.

--
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: <rmipkvhltm6.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-mail
References: <> <E96899EE-8E1A-4073-9313-F066891CB374@eschatologist.net>

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: Thu, 03 Dec 2026 20:30:57 -0500
Organization: Newsgate at muc.de e.V.
Sender: tech-kern-owner@NetBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <rmipkvhltm6.fsf@s1.lexort.com>
References: <> <E96899EE-8E1A-4073-9313-F066891CB374@eschatologist.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="57623"; 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=1796347857; bh=RjwCqnr96GnrgefOhsKWlE+4Cbu3WbPYKcKKEsOyOsI=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date;
	b=M8Htznffmq+kahMuWBrbibO9HMImYi5vFpMVOMkqdYDDtrFRmbLL3kbhw/j6v1khw
	 k+DHOVDMEoGiefKdXdK5CaGykXk7DlYYPoeEomjSp2XnJTX+S3x09n5Cb+BQc9LDzb
	 ZpWdx+NkpPZkFoC/RlOGvg4Bbcz8QcbuWdDjTAi0=
In-Reply-To: <E96899EE-8E1A-4073-9313-F066891CB374@eschatologist.net> (Chris
	Hanson's message of "Thu, 3 Dec 2026 16:27:43 -0800")
OpenPGP: id=098ED60E
Precedence: bulk
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes