From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Marchand Subject: Re: [PATCH v3 13/17] gcc/arm: avoid alignment errors to break build Date: Wed, 28 Oct 2015 13:16:24 +0100 Message-ID: References: <1445877458-31052-1-git-send-email-viktorin@rehivetech.com> <1445973229-22058-1-git-send-email-viktorin@rehivetech.com> <1445973229-22058-14-git-send-email-viktorin@rehivetech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: "dev@dpdk.org" , Vlastimil Kosar To: Jan Viktorin Return-path: Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com [209.85.218.49]) by dpdk.org (Postfix) with ESMTP id 1DED78D9E for ; Wed, 28 Oct 2015 13:16:25 +0100 (CET) Received: by oifu63 with SMTP id u63so2975708oif.2 for ; Wed, 28 Oct 2015 05:16:24 -0700 (PDT) In-Reply-To: <1445973229-22058-14-git-send-email-viktorin@rehivetech.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Oct 27, 2015 at 8:13 PM, Jan Viktorin wrote: > There several issues with alignment when compiling for ARMv7. > They are not considered to be fatal (ARMv7 supports unaligned > access of 32b words), so we just leave them as warnings. They > should be solved later, however. > > Signed-off-by: Jan Viktorin > Signed-off-by: Vlastimil Kosar > --- > mk/toolchain/gcc/rte.vars.mk | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk > index 0f51c66..8f9c396 100644 > --- a/mk/toolchain/gcc/rte.vars.mk > +++ b/mk/toolchain/gcc/rte.vars.mk > @@ -77,6 +77,12 @@ WERROR_FLAGS += -Wcast-align -Wnested-externs > -Wcast-qual > WERROR_FLAGS += -Wformat-nonliteral -Wformat-security > WERROR_FLAGS += -Wundef -Wwrite-strings > > +# There are many issues reported for ARMv7 architecture > +# which are not necessarily fatal. Report as warnings. > +ifeq ($(CONFIG_RTE_ARCH_ARMv7),y) > +WERROR_FLAGS += -Wno-error > +endif > + > Can we disable only "known" problems ? Something like : WERROR_FLAGS += -Wno-error=cast-align -- David Marchand