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 4EC784333B; Wed, 15 Nov 2023 18:40:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3D2C402C7; Wed, 15 Nov 2023 18:40:01 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id B1C31402B7 for ; Wed, 15 Nov 2023 18:39:59 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id D46BE20B74C1; Wed, 15 Nov 2023 09:39:58 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D46BE20B74C1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1700069998; bh=rPVk74W+nq1gS3YrUm/mRR1Z5s3g50+HeOBCW4L3hVU=; h=From:To:Cc:Subject:Date:From; b=bYisUgF/gDchJK5/+Ep5V7SAjVHZhcR2fMwA1jKSbJgFP49Z7NHNYMImvVhVnyUUH ns95WXxnuvPYwUs6rxfKJoXHjqne1SZIcyQ5HAR+kcM7rLy/orBKsRzECSwQlwR4S8 Uiix/ZNVJq5UxoC4az8G+RlFJmBrjKQ/fUmLMm0k= From: Tyler Retzlaff To: dev@dpdk.org Cc: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= , Anatoly Burakov , Bruce Richardson , David Christensen , Harry van Haaren , Konstantin Ananyev , Min Zhou , Ruifeng Wang , Stanislaw Kardach , Tyler Retzlaff Subject: [PATCH] RFC: use C11 alignas instead of GCC attribute aligned Date: Wed, 15 Nov 2023 09:39:56 -0800 Message-Id: <1700069997-4399-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 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 Now that we require a C11 conformant toolchain we are able to improve portability by further adoption of C11 features. Adapt EAL to use C11 alignas replacing __rte_cache_aligned and __rte_aligned(a) that expand to __attribute__((__aligned__(a))). Note: it appears that use of alignas has exposed a bug in lib/eal/riscv/include/rte_vect.h where the alignment specified was reduced to 8 for xmm_t. Please comment, subject to the outcome I will submit further series for lib/* Thanks Tyler Retzlaff (1): eal: use C11 alignas instead of GCC attribute aligned lib/eal/arm/include/rte_vect.h | 4 +++- lib/eal/common/malloc_elem.h | 4 +++- lib/eal/common/malloc_heap.h | 4 +++- lib/eal/common/rte_keepalive.c | 4 +++- lib/eal/common/rte_random.c | 5 ++++- lib/eal/common/rte_service.c | 7 +++++-- lib/eal/include/generic/rte_atomic.h | 4 +++- lib/eal/loongarch/include/rte_vect.h | 7 +++++-- lib/eal/ppc/include/rte_vect.h | 5 ++++- lib/eal/riscv/include/rte_vect.h | 4 +++- lib/eal/x86/include/rte_vect.h | 4 +++- lib/eal/x86/rte_power_intrinsics.c | 8 ++++++-- 12 files changed, 45 insertions(+), 15 deletions(-) -- 1.8.3.1