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 802C4A0C4B; Mon, 13 Sep 2021 09:18:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34046410DC; Mon, 13 Sep 2021 09:18:00 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 5AD494014F for ; Mon, 13 Sep 2021 09:17:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631517477; 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=QBmZMbDOSZGVXxhxN22PloSkkxYfLI0u57ak+z3jIxhG5H0d12dpVCU83J1V/BCrYGRAN4 PDevRiyfPm7I1Z0IYMguSNuJytrUgToz0xDXBVY0mOmsAWnohCdmeLEPsK8gD2s1zlNOdR 77EhTyrPDxmbUunSi+tMOlrSb3bb0+Q= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-556-QljO3HmVMGWP_chf4FQFSQ-1; Mon, 13 Sep 2021 03:17:54 -0400 X-MC-Unique: QljO3HmVMGWP_chf4FQFSQ-1 Received: by mail-lj1-f198.google.com with SMTP id m10-20020a2e97ca000000b001bb5da17f7dso3737907ljj.19 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=59187qGNlKQDjBnrhTXb+D5ogCzhl4U6pGH9Z3GNbF2cFibkJKQFEyOBBkH4VFNa1F q+lIIs5sbAPopWw6S5uScvFAQCH7U6r44iKkpAKh/mvu92HZ+c7in6JYuUh8vO6GvJSM G+kWlh3AW5+4Y4VCP2WcCRB5WgIYga3gWZZKHSgjZyqyQ2gcWDVYFnknMiXvJjRn1K12 plLI5emMeLYDgX0C+Odcinu/Ur1CqAgcswlWRO2JpN+bKu9rPO4zkaXyECLC+TbY04vn S/3/+UaLYKjpYQYQaxkSTHXtLwHROZW8IMnJf0ZeXGh8qjPOLNkSLrnAa7opIUars63o va2A== X-Gm-Message-State: AOAM530ZYNVQicgAgILKYsW+Oosor5Nb+UTqrdObFwsZwChFoBJSBMqG gFKzgDr5CUNmft++9Owh1Y5nHVh+pVrlDtIw5Vh5PtXSNzQmyo2NX46eq9ji6nvlQvbWGh/Vpha yAjXCzFhV7XOhMjDC7n4= X-Received: by 2002:a2e:b803:: with SMTP id u3mr9330007ljo.55.1631517473352; 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-dev] [PATCH v2] 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" 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