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 E0DDBA0C4D for ; Fri, 3 Sep 2021 01:53:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CB13340DF7; Fri, 3 Sep 2021 01:53:35 +0200 (CEST) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by mails.dpdk.org (Postfix) with ESMTP id C259C4003E; Fri, 3 Sep 2021 01:53:32 +0200 (CEST) Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 182NiSbf104219; Thu, 2 Sep 2021 19:53:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : mime-version; s=pp1; bh=P+1hWmi3G1jtqOL0vJkPWF88VmwTk7Wrh5LIWRNdg+Y=; b=nHM/KHTAt91n3F0jl6NuCzGj7MJ+9ook9wTSKzoiq5VJRkLFoFx6rDIYTxycvW65Yhfu 0OFrNO6d2DqGywdEhO/ohCEXEIoGlAxsI91jQ7gzJs0JkAhUfB7VZdRcE4Oc7OZiJLiB zv+xVX21Nhev9+aFteO3pKSbabu8Oj0xEJukatxuLElgAkPcUQiMqX+5w3XGz7rt2oPq FkBUN2eM1oKvDhS/1a/GNPYDlSAjjJyKvoPSRwr2GTCnFUGhqAtxgEoi5q7KO6hYblLR QXUFFgCiFi7ccUYowmoyuaMrAfgGIqYUzrzeOCm95DL/Sglb527pgvzywK5BTSYB2+ot Ug== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3au8j3g46h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Sep 2021 19:53:31 -0400 Received: from m0098404.ppops.net (m0098404.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 182NrVeX173631; Thu, 2 Sep 2021 19:53:31 -0400 Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com with ESMTP id 3au8j3g469-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Sep 2021 19:53:31 -0400 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 182Nqx5j030496; Thu, 2 Sep 2021 23:53:30 GMT Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by ppma02dal.us.ibm.com with ESMTP id 3au6pmtexk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Sep 2021 23:53:30 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 182NrTuK34406788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Sep 2021 23:53:29 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 56D15BE056; Thu, 2 Sep 2021 23:53:29 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 06275BE053; Thu, 2 Sep 2021 23:53:28 +0000 (GMT) Received: from localhost.localdomain (unknown [9.114.224.51]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 2 Sep 2021 23:53:28 +0000 (GMT) From: David Christensen To: dev@dpdk.org, david.marchand@redhat.com Cc: stable@dpdk.org, David Christensen Date: Thu, 2 Sep 2021 16:53:26 -0700 Message-Id: <20210902235326.3236718-1-drc@linux.vnet.ibm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210623161620.49916-1-drc@linux.vnet.ibm.com> References: <20210623161620.49916-1-drc@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: eYYPibm8UOdhGQpRsZcjbl_j8Trx8Hiw X-Proofpoint-GUID: kAbE44R_kYOVmkcJ7X0JLJvKPWoT-Eq_ Content-Transfer-Encoding: 8bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-09-02_04:2021-09-02, 2021-09-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 adultscore=0 spamscore=0 phishscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 mlxlogscore=999 mlxscore=0 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2108310000 definitions=main-2109020135 Subject: [dpdk-stable] [PATCH v2] config/ppc: ignore gcc 11 psabi warnings X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Suppress the gcc warning "note: the layout of aggregates containing vectors with 4-byte alignment has changed in GCC 5" on POWER systems by setting "-Wno-psabi". Warning was originally added to gcc in commit https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=9832651 to warn of the vector alignment changes introduced in GCC 5. Older gcc versions forced vector alignment to 16 bytes due to requirements for POWER 6 and earlier CPUs, but these restrictions don't apply to CPUs supported by DPDK. Bugzilla ID: 739 Signed-off-by: David Christensen --- v2: - update copyright year - rebase for 21.11-rc0 --- config/ppc/meson.build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/ppc/meson.build b/config/ppc/meson.build index adf49e1f42..5354db4e0a 100644 --- a/config/ppc/meson.build +++ b/config/ppc/meson.build @@ -1,5 +1,6 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Luca Boccassi +# Copyright(c) 2021 IBM Corporation if not dpdk_conf.get('RTE_ARCH_64') error('Only 64-bit compiles are supported for this platform type') @@ -17,6 +18,12 @@ if not power9_supported dpdk_conf.set('RTE_MACHINE','power8') endif +# Suppress the gcc warning "note: the layout of aggregates containing +# vectors with 4-byte alignment has changed in GCC 5". +if cc.get_id() == 'gcc' and cc.version().version_compare('>=10.0') and cc.version().version_compare('<12.0') and cc.has_argument('-Wno-psabi') + add_project_arguments('-Wno-psabi', language: 'c') +endif + # Certain POWER9 systems can scale as high as 1536 LCORES, but setting such a # high value can waste memory, cause timeouts in time limited autotests, and is # unlikely to be used in many production situations. Similarly, keeping the -- 2.27.0