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 53EC942A51; Wed, 3 May 2023 18:51:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E151641144; Wed, 3 May 2023 18:51:28 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2058.outbound.protection.outlook.com [40.107.93.58]) by mails.dpdk.org (Postfix) with ESMTP id 45386410F9; Wed, 3 May 2023 18:51:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ROqUppQ2uaRzLGfW3lvquF0GPLkguuVRGkY65cBL8Tt0790bo34IRZc3XMk8/wCcRnCjZZLl8nRrt6OnykyXnJtsXsmsBBOzIbz+I8KAohqCGRlEFrHGKmT+FhiIUGZs88ebVTaXVx6vGHGmZ6Oi3ejqNHl7WjDNPtbTDEflbS3AFg/3UYm/lNBQJ566bUYBZj6RiSU6bPxZQ062r/tF70I1cLL4lUbpjUMIyVN5w76bJ3BjmHf9t2/b1w3miAyYju+KULp54bbT64+7q26h6tOYFvsP5217s6ph3X+1Lc1oF/V1CZZKd5+T0XxJ4Cb0WYu5FMM95TG7Teb2cvTNKQ== 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=gcg8eWXNejC+pTfXW7YkfJPWG/QemDiAI/sh0OQXLe4=; b=D7zTGR1UnFxAu140uqtp6zoUpPXMy0Bmlf44ImYd4+Oc7QYS4yArYMM7ihpJM6IcUeBQDdGfMgFOcTdVS/8WfgzbLmKYt0R6ZbwixMUtYQrUAT8zPh7sz41W2GA7p9AUL/xYt0HWc8V8gzeYRfub66++4+oIst3EJAVEn/9r/JfrhdH7fP7taQZ0jfHYiQ8Cx988cJskc6Y9P0ZmVCDIbTpPgTzmTfvAgpVMO7NeaWBOGhC2VV94KuKhJ/ZWjXNKWKpG8o8/eTj6lz2x9CpIjHo+XjOq3dJs1x94I2JISy1+iXAG30SwlMWWD+8CBih5z8PY5pTgOrzt8QMyEYSXFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gcg8eWXNejC+pTfXW7YkfJPWG/QemDiAI/sh0OQXLe4=; b=XI6K0/jvVloXn4O3gCVlOjjh1daR3T7XNnT9Q6VZq1NrLR+8WU7E7kIQsAmRatQNsla8MW4LGUNOu8GjxIOIUjoTx0dAnirUYlfxSFxHZlWDEzyhqjKJEPryf2YXMFnjV9Pz6fVh63YaMHAzSyF6ksfvyzYro41AnmLUkeiw47Y= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by SA1PR12MB7410.namprd12.prod.outlook.com (2603:10b6:806:2b4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.29; Wed, 3 May 2023 16:51:23 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::e818:77ea:75b5:f8cc]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::e818:77ea:75b5:f8cc%5]) with mapi id 15.20.6363.022; Wed, 3 May 2023 16:51:23 +0000 Message-ID: <9d81667d-df78-0b6f-cb0a-62e9854195a3@amd.com> Date: Wed, 3 May 2023 17:51:18 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH] build: announce requirement for C11 Content-Language: en-US To: Bruce Richardson Cc: dev@dpdk.org, techboard@dpdk.org References: <20230503151413.14915-1-bruce.richardson@intel.com> <109ffc3a-faad-eef2-b44a-5838c4c2f184@amd.com> From: Ferruh Yigit In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0062.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:153::13) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SA1PR12MB7410:EE_ X-MS-Office365-Filtering-Correlation-Id: 01512ade-d5bf-4173-e8fe-08db4bf6a076 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VFakeFISVFjCwjOq1R8toF64prK1jLkxDTsF5xe/up7/510oz98wMU5zQ1DSPVvriYKGT3P0L4r4vn1hWvS8x+BoYN+oitSDstpg98EZp6WieKgnQ/GfIRWWuPStL+A0GuJYfIU9xBRG1fp50F+MNobIu/OVEjF9yCR8l0N/VG27v1w8YgExTE2YZ1ETYoHSlolrLnE8xOQ51/T3IDcoO2tw3IR8ipkg1ZoRqCT10ADFFU/oSSyw4ZQfrEeAMmywjlQzrKgfoleOxK/Gtli0STy2AgTGjTzNHdwAe19oN8G1IQ9G3FefQDrfmnur0UEWZOsx80WL3Q7xP/2/ASVxegWKRpRbWU1dtiQFYXWOKs5DAa9hcZ5VIdNKxQa/GLghCIn9ZssOD1Yuyimugk5Og5YmJu/xQcf3bRQxrXSE/GM/lAU1bGFUacRMifRqIVU0ELufZv3tR8p9ACvzXZJF4KJyTidUzgx4t1c9YpNv7o01UIj0Yg3sUbla8I/akJZ43dyoj8bzK1OXm3H2QOsvWEU+awj9KTsQ+3MqjM8Egx1TLLWvS5SJHsKMJPTm1res24GahicqXJ29SIcn2KhSPV8DZkFRAOWmszcgWp0L+OsGeTq98Vxp4+WWz+VQCrC/GCtKjbIisODP8RfNuhpSBQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(396003)(346002)(136003)(376002)(39860400002)(366004)(451199021)(6666004)(966005)(38100700002)(6486002)(6512007)(26005)(6506007)(36756003)(83380400001)(53546011)(2616005)(186003)(86362001)(316002)(41300700001)(4326008)(6916009)(2906002)(66476007)(44832011)(66556008)(66946007)(31696002)(31686004)(8936002)(8676002)(478600001)(45080400002)(5660300002)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V0g4UUNwWFpQNVVKL2hKY1dSRzE2c2JqaW00aTNJUm5DMXVoZEE5TXVTRytH?= =?utf-8?B?ZlRjVEJoSCtxaEU0QkpRZ0w5cXU2VlA0TTNDdzk0T2g4ZG40ZXlyenVHL0pk?= =?utf-8?B?M0lSYWZLdjNyQXEvdFR0NHNTK2JGa2loZ2VrMEY0UkZ0T3Joek5VbENWL2RO?= =?utf-8?B?NTljVG5NNEdlbjkydkg5bW5oSENFWVFOTUl3OFp5d0dJbHVnSEg2bVhVUmQ3?= =?utf-8?B?S2JUaXh1T255S0hEMk1RNW50aW5jSm80dDhXYzVuZGpISnNGeTQyODJMekh0?= =?utf-8?B?VUlKaVpBYVhQR1FjNEJLekZFbDV1azhUSzlNN1lXTDViM2ViaUxrMGNnVEQv?= =?utf-8?B?NnZLNlVxYTE0MXRtenVRd0lSRFNvUXhKM25kYldsRWlOaktRbDlIaHlL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exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2023 16:51:23.2859 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: annCje6BQMraXxSx0cgBrVoxRlfbTnVITK/0hjEz4EeTSNWGJqLFdCglDfbPBxWZ X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7410 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 5/3/2023 4:57 PM, Bruce Richardson wrote: > 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. > Ah, thanks for clarification. The previous patch made me think we are keeping headers C89 compatible, I missed the final decision. > 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+. > Not just compiler version, application enforcing an old standard also may cause trouble. But I can see this is simpler from DPDK perspective.