From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 701C95A7B for ; Fri, 27 Mar 2015 09:57:18 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 27 Mar 2015 01:57:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,477,1422950400"; d="scan'208";a="473440630" Received: from irsmsx109.ger.corp.intel.com ([163.33.3.23]) by FMSMGA003.fm.intel.com with ESMTP; 27 Mar 2015 01:57:17 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.49]) by IRSMSX109.ger.corp.intel.com ([163.33.3.23]) with mapi id 14.03.0224.002; Fri, 27 Mar 2015 08:57:15 +0000 From: "De Lara Guarch, Pablo" To: "Qiu, Michael" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] test: Disable strict-aliasing warnings Thread-Index: AQHQZ/mOqZSonOu9tUujkVVfLNfq5p0wB9AA Date: Fri, 27 Mar 2015 08:57:15 +0000 Message-ID: References: <1427397455-30368-1-git-send-email-pablo.de.lara.guarch@intel.com> <533710CFB86FA344BFBF2D6802E60286D18E59@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <533710CFB86FA344BFBF2D6802E60286D18E59@SHSMSX101.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] test: Disable strict-aliasing warnings 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: Fri, 27 Mar 2015 08:57:18 -0000 > -----Original Message----- > From: Qiu, Michael > Sent: Friday, March 27, 2015 8:41 AM > To: De Lara Guarch, Pablo; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] test: Disable strict-aliasing warnings >=20 > On 3/27/2015 3:18 AM, Pablo de Lara wrote: > > DPDK does not build on gcc 4.4, as it complains due to >=20 > Why? Will gcc 4.4 not supported? Afaik, we still support gcc 4.4, since it is part of RHEL 6.5. Thanks, Pablo >=20 > Thanks, > Michael > > strict-aliasing rules in virtual_pmd and link_bonding_mode4 tests, > > with no errors in next gcc versions: > > > > CC virtual_pmd.o > > CC test_link_bonding_mode4.o > > cc1: warnings being treated as errors > > /root/dpdk/app/test/test_link_bonding_mode4.c: In function > 'test_mode4_expired': > > /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:645: error: > dereferencing pointer 'pkt.409' does break strict-aliasing rules > > /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:729: error: > dereferencing pointer 'pkt.409' does break strict-aliasing rules > > ... > > cc1: warnings being treated as errors > > /root/dpdk/app/test/virtual_pmd.c: In function > 'virtual_ethdev_stats_reset': > > /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:645: error: > dereferencing pointer 'pkt.338' does break strict-aliasing rules > > /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:729: error: > dereferencing pointer 'pkt.338' does break strict-aliasing rules > > > > This patch fixes the compilation by disabling > > these warnings. > > > > Signed-off-by: Pablo de Lara > > --- > > app/test/Makefile | 5 +++++ > > 1 files changed, 5 insertions(+), 0 deletions(-) > > > > diff --git a/app/test/Makefile b/app/test/Makefile > > index 4aca77c..0d62d07 100644 > > --- a/app/test/Makefile > > +++ b/app/test/Makefile > > @@ -158,6 +158,11 @@ CFLAGS_test_memcpy_perf.o +=3D -fno-var- > tracking-assignments > > endif > > endif > > > > +# Disable warnings of no-strict-aliasing in virtual_pmd > > +# and test_link_bonding_mode4 tests > > +CFLAGS_virtual_pmd.o +=3D -Wno-strict-aliasing > > +CFLAGS_test_link_bonding_mode4.o +=3D -Wno-strict-aliasing > > + > > # this application needs libraries first > > DEPDIRS-y +=3D lib > >