From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wes1-so1.wedos.net (wes1-so1.wedos.net [46.28.106.15]) by dpdk.org (Postfix) with ESMTP id 22A6711F5 for ; Wed, 28 Oct 2015 18:34:15 +0100 (CET) Received: from jvn (dynamic-109-81-211-164.ipv4.broadband.iol.cz [109.81.211.164]) by wes1-so1.wedos.net (Postfix) with ESMTPSA id 3nmH864xrnzYc; Wed, 28 Oct 2015 18:34:14 +0100 (CET) Date: Wed, 28 Oct 2015 18:34:07 +0100 From: Jan Viktorin To: David Marchand Message-ID: <20151028183407.07b22332@jvn> In-Reply-To: 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> Organization: RehiveTech X-Mailer: Claws Mail 3.13.0 (GTK+ 2.24.28; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" , Vlastimil Kosar Subject: Re: [dpdk-dev] [PATCH v3 13/17] gcc/arm: avoid alignment errors to break build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2015 17:34:15 -0000 On Wed, 28 Oct 2015 13:16:24 +0100 David Marchand wrote: > 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 > > Sure! That's better idea, I always forgot about this possibilities in GCC... Jan -- Jan Viktorin E-mail: Viktorin@RehiveTech.com System Architect Web: www.RehiveTech.com RehiveTech Brno, Czech Republic