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 41998A0C4B for ; Mon, 13 Sep 2021 09:17:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0ADC64014F; Mon, 13 Sep 2021 09:17:59 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 95F664014F for ; Mon, 13 Sep 2021 09:17:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631517476; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SXG8SnbLU/JrDMtTaXQr/O1cWzvqJB7pjekFIuY4U+w=; b=aG9O5MRPXKA7vU5XdZbZCOcZuy6ij4FwG4jkq88LSWsr9pBEgvV00dcsmwbBYyo+crJPVs axWSTXztrCCJ30drYXnzsvRt/1dpupz5NjhDsu6cszQKvOGkRWrdJlBgrVtxSvzSoOQ0lP mCZF9jvWOERSGqEGyr6ZwK5BCYSfrKE= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-411-hUO-KZtCNfmcvs3zdOcyFQ-1; Mon, 13 Sep 2021 03:17:54 -0400 X-MC-Unique: hUO-KZtCNfmcvs3zdOcyFQ-1 Received: by mail-lj1-f197.google.com with SMTP id c16-20020a2e89d0000000b001d018ef42aaso3752511ljk.23 for ; Mon, 13 Sep 2021 00:17:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SXG8SnbLU/JrDMtTaXQr/O1cWzvqJB7pjekFIuY4U+w=; b=mpmurOJsV/W1KeAQPWeP/v6ATzJamPcHObF0sNh2VoKuE0F1Tk80qn0M1qZmK5kLNI P1c2Dj9D1NeahI6RQxL1hNDFhxlUkfbXBON1r9s9tBgZJFxjrBN0bJtMBHE0pl/iR79v ggbTI8VvIG5IG7/CQRu/GfXFxvdQwCBl1iQbNLdCO7CBMrtEGJHOvFVD8fj4jc7AEl0D PyPjnRzNRlOQuVCokIdK6aYqaa/wPQDed1XUovYR4cMGNy+e0AgOFul6nra9zXULqUxz 0XGyote2jcn31Wn5xR79fnP2KPd1zGO5Iv9bYnIhBuSNG3ATVPtfwTjbOCMw8x6z++bx nSeA== X-Gm-Message-State: AOAM5335TvJiX6WT66QoEGzmEmLwoZSSBd3j/qtj3Rhjvqbr2i/wkdwv wwXR10fWR+VUhKGbN0v5t0sVIKd5DRiF8T+sDaNIfo6y9CeCobAhwaUL2Gdk6ZIacHJ/MVooSZa byunUYuSTY4NbOGNrWkNPoYM= X-Received: by 2002:a2e:b803:: with SMTP id u3mr9329999ljo.55.1631517473274; Mon, 13 Sep 2021 00:17:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaV4PHVt1bLn81pQ9VGfS55YeFUQCIiYKFu7Bz+orGfXWhG1vhwiw6aPBSzL/B58XMTymLde+eKdKRlE3FwGo= X-Received: by 2002:a2e:b803:: with SMTP id u3mr9329982ljo.55.1631517473031; Mon, 13 Sep 2021 00:17:53 -0700 (PDT) MIME-Version: 1.0 References: <20210623161620.49916-1-drc@linux.vnet.ibm.com> <20210902235326.3236718-1-drc@linux.vnet.ibm.com> In-Reply-To: <20210902235326.3236718-1-drc@linux.vnet.ibm.com> From: David Marchand Date: Mon, 13 Sep 2021 09:17:41 +0200 Message-ID: To: David Christensen Cc: dev , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [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" On Fri, Sep 3, 2021 at 1:53 AM David Christensen wrote: > > 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 I guess the intent was to have this backported. So added explicit Cc: stable@dpdk.org > > 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') Wrapped this to next line. > + 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 > Applied, thanks. -- David Marchand