From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4BAE242A50; Wed, 3 May 2023 17:45:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C417D41144; Wed, 3 May 2023 17:45:07 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 3156A410F9; Wed, 3 May 2023 17:45:06 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 7663121C4249; Wed, 3 May 2023 08:45:05 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7663121C4249 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1683128705; bh=+l3PCMChB8GjLMxHNKT1ukCHmDBlHrS1Qf/Ei5lPKz4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aCxXtQiksyYRPbHkKYb7KScpBmL7SRTdSSUuQSFCBOhiM8JMM5PT8K/0BA25LDkrc CWkZwQsYKyYYq5Tkij0Str5GaxrUNDQWLtb+ILadjHNI30fa9B44YA+awSIx0XuOXW ST4ZKNhPkxV/ezMyX0DRgjwaPY2ms3E0FJEH0i0w= Date: Wed, 3 May 2023 08:45:05 -0700 From: Tyler Retzlaff To: Ferruh Yigit Cc: Bruce Richardson , dev@dpdk.org, techboard@dpdk.org Subject: Re: [PATCH] build: announce requirement for C11 Message-ID: <20230503154505.GA12879@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20230503151413.14915-1-bruce.richardson@intel.com> <109ffc3a-faad-eef2-b44a-5838c4c2f184@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <109ffc3a-faad-eef2-b44a-5838c4c2f184@amd.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, May 03, 2023 at 04:39:14PM +0100, Ferruh Yigit wrote: > On 5/3/2023 4:14 PM, Bruce Richardson wrote: > > Add a deprecation notice informing users that we will require a C11 > > compiler from 23.11 release onwards. This requirement was agreed by > > technical board to enable use of newer C language features, e.g. > > standard atomics. [1] > > > > [1] http://inbox.dpdk.org/dev/DBAPR08MB58148CEC3E1454E8848A938998AB9@DBAPR08MB5814.eurprd08.prod.outlook.com/ > > > > Signed-off-by: Bruce Richardson > > --- > > doc/guides/rel_notes/deprecation.rst | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst > > index dcc1ca1696..9a391d2c49 100644 > > --- a/doc/guides/rel_notes/deprecation.rst > > +++ b/doc/guides/rel_notes/deprecation.rst > > @@ -11,6 +11,12 @@ here. > > Deprecation Notices > > ------------------- > > > > +* C Compiler: From DPDK 23.11 onwards, > > + building DPDK will require a C compiler which supports the C11 standard, or later. > > + Please note: > > + - C11 is supported from GCC version 5 onwards, and is the default language version in that release > > + - C11 is the default compilation mode in Clang from version 3.6 > > + > > * kvargs: The function ``rte_kvargs_process`` will get a new parameter > > for returning key match count. It will ease handling of no-match case. > > > > This only applies to DPDK internals, right? > Application linked with DPDK library won't have this requirement, > meaning DPDK public headers won't rely on C99 and C11 features. > > Although this is a deprecation notice for DPDK, if above is correct, > does it make sense to highlight it to not confuse users? it applies to applications as well because dpdk exposes integers expected to be atomic via headers and inline functions use atomic functions both internal/external.