From nobody Mon Jun 22 10:49:58 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gkQ2P2Nkbz6jfyk; Mon, 22 Jun 2026 10:50:05 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gkQ2P1Zb5z3R6w; Mon, 22 Jun 2026 10:50:05 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782125405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YokQL6RIFUlpBwY1swHC7HOwzKp/vskumVE3BupuLzA=; b=C0LYibIVv+qzL+Y36rc/siDJH7iZknYRNhiqBt0uyD4yvHHrjSY9/aT1THtuYOnj21H9JI 0QN3ThZA2FOVaUOdgXNZcHhXeFVArRQ8GOMZQ2T12bQdl0qc5bEgQKsjCnJBY5wgsGzfu6 QmN+3H93NsnplVyCj7FrGOYy8H9Z/Bhkni9QyFHMrX1rErufa72moAVsexHiljFHZMtr5C M2mYxqbR9njpaV5m8tdKLlNnioPQNYaLBuCXRzgQ3h9s2jJ8QuD+OvPiynBv9JXFxvlxeW HComVVoEXndMLFJcX0MHLBnlppXHY8xaSQwT8djJ3ZEspxuYUJKDES302lfj5A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782125405; a=rsa-sha256; cv=none; b=UjidDjr9hs2BGwrRJqoG9WQ4rNX0kSFqDApKqjIQy50JLJro9/7NEOt5vIv/WkY80bFBDF gM1c8hE31lpmiXiS6ZZXx6uVHpP1qKX2UmJ0/zZvSG2FeRR/U+c3F+z+7Uo7mTtJxDR7gz KfD9UEJl+Nl5nv931rCaM7gvUq9vquulUdvOXF1PBF4tEL383d28PDMj/hubxcTHNwdR5Q e8VO2qqcbuqgBi0AxJ0q7thwXuCCkMdp/VNOBtN5FfLjByCiKzoOXqbL+l2PussCQcASNu JSjbmK/GyQT226R66IB+LZ/vZtZY1Q0hEh0UpuzlegCjVHKnctTF2atuK5DUkA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782125405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YokQL6RIFUlpBwY1swHC7HOwzKp/vskumVE3BupuLzA=; b=I/Mi6yn4Kk55VYNU8Z+fmaLcF3YY1B+OSs24Bc8WBz7/65EvxGn+/NlQuORintVsnhyRF3 7vDgb8CSh/PDt+BcdSlZjOrLZr1PYFCMpjBkFiUFXgOb02p3vxkCtJqOMuB0ngD5LtsuHW XKlC3/IDVa9ojw/Fd5KCiBfgYH+RXEWX9DHloUKekG+7QB/VBxGgv270TDckKgijzyR8fU ZL9U+/g+OYoQ2mbJvHr6cAEb0JEUuNvqGHXMgunTHcklt39GXiW8tV63PFd8mrL12Dl0Ew vAGs5iNSd5mbP/kXdbAlyyqFIoyZztTDc6C8RN8NkDna6A0M0VBLP1sW6SkJcA== Received: from ltc.des.dev (unknown [92.183.55.143]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4gkQ2N6ZxPzCNY; Mon, 22 Jun 2026 10:50:04 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 83AF050296; Mon, 22 Jun 2026 12:49:58 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Faraz Vahedi Cc: Warner Losh , Mark Millard , Warner Losh , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org, Nuno Teixeira Subject: Re: git: 28cecfe27964 - main - libc: Restrict ATOMIC_VAR_INIT for C23 conformance In-Reply-To: <20418B20-C033-4360-B5F9-0BA39609FA4D@kfv.io> (Faraz Vahedi's message of "Mon, 22 Jun 2026 14:05:35 +0330") References: <6a35ddd3.22963.721d614@gitrepo.freebsd.org> <4e902fcf-e79c-47b5-a51f-4881c09f7528@yahoo.com> <94E5F613-3930-464B-AC10-4943230C2025@kfv.io> <86bjd3rmpr.fsf@ltc.des.dev> <20418B20-C033-4360-B5F9-0BA39609FA4D@kfv.io> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Mon, 22 Jun 2026 12:49:58 +0200 Message-ID: <864iiusvc9.fsf@ltc.des.dev> List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Faraz Vahedi writes: > That distinction is well understood, but I think removals tied to a > specific standard version are cases worth considering separately. > > In this case for example, ATOMIC_VAR_INIT is only removed from C23, so > the relevant question is not which interfaces we choose to expose, but > rather whether the compiler is operating in C23 mode. No. Using __STDC_VERSION__ here would mean =E2=80=9Cthis library feature o= nly works when compiled by a certain compiler=E2=80=9D which is not the case. > Assume the default standard mode of a compiler is C17, internal > visibility policy is set to C23, this is absolutely expected to have, > say ATOMIC_VAR_INIT (that has been deprecated since C17 but remained > available until removed in C23,) if not explicitly compiled for > C23. That's the fault of whomever decided to request that specific combination of C compiler and library version. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org