Skip to content

Commit

Permalink
build: announce requirement for C11
Browse files Browse the repository at this point in the history
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 <bruce.richardson@intel.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Signed-off-by: 0-day Robot <robot@bytheb.org>
  • Loading branch information
bruce-richardson authored and ovsrobot committed May 17, 2023
1 parent a399d7b commit d5d5d15
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/guides/rel_notes/deprecation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ here.
Deprecation Notices
-------------------

* C Compiler: From DPDK 23.11 onwards,
building DPDK will require a C compiler which supports the C11 standard,
including support for C11 standard atomics.

More specifically, the requirements will be:

* Support for flag "-std=c11" (or similar)
* __STDC_NO_ATOMICS__ is *not defined* when using c11 flag

Please note:

* C11, including standard atomics, is supported from GCC version 5 onwards,
and is the default language version in that release
(Ref: https://gcc.gnu.org/gcc-5/changes.html)
* C11 is the default compilation mode in Clang from version 3.6,
which also added support for standard atomics
(Ref: https://releases.llvm.org/3.6.0/tools/clang/docs/ReleaseNotes.html)

* kvargs: The function ``rte_kvargs_process`` will get a new parameter
for returning key match count. It will ease handling of no-match case.

Expand Down

0 comments on commit d5d5d15

Please sign in to comment.