From patchwork Wed Jun 23 16:16:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Christensen X-Patchwork-Id: 94766 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 94F3DA0C41; Wed, 23 Jun 2021 18:16:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6925B4003F; Wed, 23 Jun 2021 18:16:28 +0200 (CEST) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by mails.dpdk.org (Postfix) with ESMTP id A86C64003E for ; Wed, 23 Jun 2021 18:16:26 +0200 (CEST) Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15NG4LKS088988 for ; Wed, 23 Jun 2021 12:16:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : mime-version; s=pp1; bh=s4w0eAVO5grdZXFsSwAZMLYnt7PAFJw2mtiza4rCCI0=; b=qCE7F1n4OE6r07zK1eJk5ylTzGMZxXRn8/xkp9v1ml/vo6T+T9QY2eoaeVAtj9Pm/nmd mHrbwb8JsMh8gEQdphjOCJZv8U6Y9mVlfexdcUdMjgeho8X43+gXJE8IfRLeTDul8rVt 8c2ETIuofJ/r404TLSu/4WRRRRypzNV8dnsT+2xYDOwtvdUsUBuL5C1WOBwLs9m/mr2U AQ+Xqx/s5Yh1T2KcvO8+dCEC8bAKaH07gZM/IhvmW8H3M1bjgS5iMI8OD5AhNeckSGkb JW+/Ze0COoBNXjEfic7B6Jeg2Q9kztEZbhyG9QfIURFEBXHmk6r80rHk3rPzcYDLlICR 4g== Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0a-001b2d01.pphosted.com with ESMTP id 39c7xd0yfw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 23 Jun 2021 12:16:25 -0400 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 15NG90Q7029705 for ; Wed, 23 Jun 2021 16:16:24 GMT Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by ppma04wdc.us.ibm.com with ESMTP id 399879ht78-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 23 Jun 2021 16:16:24 +0000 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 15NGGNsk34734540 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Jun 2021 16:16:23 GMT Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 902CF78060; Wed, 23 Jun 2021 16:16:23 +0000 (GMT) Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 583667805C; Wed, 23 Jun 2021 16:16:23 +0000 (GMT) Received: from localhost.localdomain (unknown [9.114.224.51]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP; Wed, 23 Jun 2021 16:16:23 +0000 (GMT) From: David Christensen To: dev@dpdk.org Cc: David Christensen Date: Wed, 23 Jun 2021 09:16:20 -0700 Message-Id: <20210623161620.49916-1-drc@linux.vnet.ibm.com> X-Mailer: git-send-email 2.27.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: diGZtjffs9Bn4HDFwgHzXTCOIgTYGenV X-Proofpoint-GUID: diGZtjffs9Bn4HDFwgHzXTCOIgTYGenV 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-06-23_12:2021-06-23, 2021-06-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 phishscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 adultscore=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106230093 Subject: [dpdk-dev] [PATCH] config/ppc: ignore gcc 11 psabi warnings 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 Sender: "dev" 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 --- config/ppc/meson.build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/ppc/meson.build b/config/ppc/meson.build index 4f7806bab1..6c2db4a0aa 100644 --- a/config/ppc/meson.build +++ b/config/ppc/meson.build @@ -17,6 +17,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