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 541FC42A50; Wed, 3 May 2023 17:57:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3F54D41144; Wed, 3 May 2023 17:57:53 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id F3CF2410F9; Wed, 3 May 2023 17:57:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683129471; x=1714665471; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=CyD9HPwMJ/G6pN6Nt/AU+aCp12DBPVzOlno617bSuIQ=; b=ZYhm1mAY/RfaLmzQuPfyA7ZAaZ5Cu7CFdsMBf050gGf+co6eYnXSV5iD NNacL2qKsV0T/bUiAUtJM3/HU6FWdWhg7fxjM3AMe7fJmRAAZStsdeRvB rvcAPnFuy0nVkMfoREH5FB0l883zi9c2oxFjQiHWfNeG4/IEhl9lDpRTF 0Eu4MpWvHYeUWrM89Ap7v3w+Hwh26mpabKpZexXHc0mzuxKXwPI6I4ehj U1f7DIG2FIERa7oT5DHbOIzPnD4rolUrYFChAIRYRjnSmx0CxgawUPTgE Z+Iwj7GX5tv2EuPR8ANMlK1CuVDDOM+8TVV++jEhXmzl86TItlH2zZffc g==; X-IronPort-AV: E=McAfee;i="6600,9927,10699"; a="348732140" X-IronPort-AV: E=Sophos;i="5.99,247,1677571200"; d="scan'208";a="348732140" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2023 08:57:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10699"; a="808323803" X-IronPort-AV: E=Sophos;i="5.99,247,1677571200"; d="scan'208";a="808323803" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga002.fm.intel.com with ESMTP; 03 May 2023 08:57:49 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 3 May 2023 08:57:49 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Wed, 3 May 2023 08:57:49 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.40) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Wed, 3 May 2023 08:57:49 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rg84WFkTYWOTmdDAum1YegJAYtEDWGEPXJNHY0TrxbhVIaJzM99g/EASSSYloe61oBWXuizHvY5SLa21xOzePh2naM7oVaXeO8c3AXlM42PTG3dbjTjpqWc+kZGylq5VvbA5x5kixM9gNS7WLIkVOmu5k2J810tM2JwVecvcgFH+6+R/8qAmVHBw5vbmU1Xgaevj4P90RbR6uzu42qMt4KhcOoKVLBNp8n6m/ip5stxEkUM/Mitjkju0kJtokqxizjiH9YKMjtJhj9vHbFmbRTSXViq1QvUy9rsHheW5WHOezGG5DR6apo0NVirjqZZkIUiL1Yykmy7U0sLSrXlUhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KOvR1Ts1I2eevOijxeVhT+8yR+1ob7wfWyQ3J6BFpB4=; b=AvE982QfOelHwDmsqJyfV8rsHQlbJNZYAhodIAMpTeg/1g0TZtLHuLh6jbgcQsnIuChK/f1Oh1IqqdTsLznjcUHWjxz62TwCyqzaFqEDLMOTfAW8TIhoAaWpEWaFk534ItAlrFavgi0634rezP76J5CC4aUVEsgc75ujLwboJYp0uM48SfS48VJgv4vmCXpE+Zrer3//fxcv5aTW+TZJfrnuVfyFtC4yAz2QwFGRY2DbtJqQfFQ1xCU+rAFA5jQCMGGJmOA/EvZPirAKW1ZaSsE3h7TlE13TIGpFM7uB5tZ3Y9D6rzPX3VeaHA/HbgshxbkAzBg5PLCCRcd7ayldpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by PH7PR11MB7123.namprd11.prod.outlook.com (2603:10b6:510:20e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.31; Wed, 3 May 2023 15:57:47 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::b8f3:958:d2c5:2232]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::b8f3:958:d2c5:2232%7]) with mapi id 15.20.6340.023; Wed, 3 May 2023 15:57:47 +0000 Date: Wed, 3 May 2023 16:57:40 +0100 From: Bruce Richardson To: Ferruh Yigit CC: , Subject: Re: [PATCH] build: announce requirement for C11 Message-ID: References: <20230503151413.14915-1-bruce.richardson@intel.com> <109ffc3a-faad-eef2-b44a-5838c4c2f184@amd.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <109ffc3a-faad-eef2-b44a-5838c4c2f184@amd.com> X-ClientProxiedBy: LO2P265CA0137.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9f::29) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|PH7PR11MB7123:EE_ X-MS-Office365-Filtering-Correlation-Id: 5e4d0093-5eb9-4a59-ae94-08db4bef237e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vXuVaJIn7ap/KHt/dO39egoLw+NgQO4F37QUbRHSTkkVw4zkwvc8jreBOUjfsHa5USlJm3x9hiGJzdBqtiqBe2APk6q6j/Nc951zcGbfCLWFcziqUzn9g3fwPUVDedMAfk+aUT69Qur8d/Kn+5kGufGYXhf9sIY/LYPKl+5+eGT1Zerwk0+GIryCU6rvPKhdH2tVQkVNVdAWi/agOLehAXxeqTmdeK33uuq7Hf+0MXTTPhcQz3gP3c2YvDqVwXuAnB2ydXSQpJTxSFo/6S1fyZt5wyUq5MheBSTahUx9NPh2097vq/faHu+9jH1K16QhEic2RoKIKTwhOwidDDsyVFhQMLGZmc+X9+9qubnWUmmYkxxK/TJ8Eq8BFQDNnimMlEWUDMOn+4LAuTIWU+if3m7mvs9NiTAC52yUw+MjT4gJa1zDVXm/+ly9ocGx0nr9OI4epmOYWSuA/GXPcV8JhIHuipKwsfireyPMV2CJd8GtiyJXOD0ypbbOIcSnDVI+hmHBUK2QgH9IvpemmVXgVoymaW1btcYcLQbNYlCabQM= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(366004)(396003)(136003)(376002)(39860400002)(346002)(451199021)(86362001)(4326008)(66556008)(6916009)(66946007)(66476007)(6512007)(6506007)(6666004)(41300700001)(8676002)(8936002)(5660300002)(53546011)(316002)(6486002)(2906002)(44832011)(45080400002)(38100700002)(26005)(82960400001)(186003)(966005)(83380400001)(478600001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?BJOaOllNTYvH6CMKrDzI1RCwLls3+pieVQxK7GPVDPrzQ/HDElsETybCsfDi?= =?us-ascii?Q?2MldDVDlhWmUTwIPQNRiLAB4il8GISfF/i5G8Dy4anHf8aE8KtN99CyoTn8/?= =?us-ascii?Q?EMNe60YaX3tViXbb0fUS+tQ0jcZ0iyllV1aYEgeYVcPyylnwxB8XjN6KsS54?= =?us-ascii?Q?9gMB7bx/OWofZkT11kZ9z0KBNoplY3Uc2eu14DyUZMgOYe2BuSLO6YF/zzow?= =?us-ascii?Q?GUQJMeiFNfn60JQbdnU/0SI1rtg3ZRfJhs9kXbQ5dPrF1hB5OFU3RN0+eT3o?= =?us-ascii?Q?l8MHZRFx01Z1SHWVa+QSbO1EK5igA/BVU8nb/ZAfQlwJp6z8ypVGzLHrFCKt?= =?us-ascii?Q?hFu9LY03H+cszNZSN1qvODW8pksXr6IiXEHUlZQnKOUuP7l+JzYFdwxjNvvZ?= =?us-ascii?Q?ky4htlb2dciaH66nk7YTCuTjGaCkH9IYFBA+b7kzjaIMQjHhm8i7/npXr7U3?= =?us-ascii?Q?nZZA64nbJuhLkXQDJgNtnItiy99KrK9HC/LAFjft9eP2YpDF2Ri/fSDBGRND?= =?us-ascii?Q?JsUVIauam2b+MdohMhvbW2KzsHSUonQHtf+KRp+Dn8okO7hF9k+GfvUy7t/8?= =?us-ascii?Q?hEb0AwVio5m81UIxiatf2kag1Eyz3sZNJHczGbWFC8RabWekaKfbRBtZVDe4?= =?us-ascii?Q?50f4xmctIpOmUwilCPwpK8oL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-ascii?Q?FrOqmh1j4un6tzNhaM5MTFRSyslYT5P6GZMHdEJ3EBAI06SJXaKGQH4kCa3g?= =?us-ascii?Q?0A=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 5e4d0093-5eb9-4a59-ae94-08db4bef237e X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2023 15:57:47.0548 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rU+cjBubvq/usVaJ4oOCNx2MO7Ya6ju68hYLmPxCoMcqPRdbm/ITw5USczwd071S2Mlkkp95wDQUadOVJpE95VQpBQcyb5/wYpp4d93+3ak= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7123 X-OriginatorOrg: intel.com 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. > No, AFAIK, that is not correct. Originally I had thought that that would be the case - hence the special-case tests for the headers in my previous C99 patch - but the consensus at the DPDK techboard was that we won't require all headers to remain C89 compatible. Originally, I was unsure about this, but now I agree with this position, on the basis that since GCC 5, unless you have been explicitly requesting an older standard, the compiler is using C11 rules. Therefore, everyone using these later GCC versions is already using C11+. /Bruce