From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 9C9135A62 for ; Fri, 27 Mar 2015 09:41:59 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP; 27 Mar 2015 01:41:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,477,1422950400"; d="scan'208";a="698701914" Received: from kmsmsx152.gar.corp.intel.com ([172.21.73.87]) by fmsmga002.fm.intel.com with ESMTP; 27 Mar 2015 01:41:57 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.110.14) by KMSMSX152.gar.corp.intel.com (172.21.73.87) with Microsoft SMTP Server (TLS) id 14.3.224.2; Fri, 27 Mar 2015 16:41:05 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.36]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.108]) with mapi id 14.03.0224.002; Fri, 27 Mar 2015 16:41:04 +0800 From: "Qiu, Michael" To: "De Lara Guarch, Pablo" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] test: Disable strict-aliasing warnings Thread-Index: AQHQZ/mZGqIXk6cjFE+vWTXBpcXagw== Date: Fri, 27 Mar 2015 08:41:03 +0000 Message-ID: <533710CFB86FA344BFBF2D6802E60286D18E59@SHSMSX101.ccr.corp.intel.com> References: <1427397455-30368-1-git-send-email-pablo.de.lara.guarch@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="Windows-1252" 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:42:00 -0000 On 3/27/2015 3:18 AM, Pablo de Lara wrote:=0A= > DPDK does not build on gcc 4.4, as it complains due to=0A= =0A= Why? Will gcc 4.4 not supported?=0A= =0A= Thanks,=0A= Michael=0A= > strict-aliasing rules in virtual_pmd and link_bonding_mode4 tests,=0A= > with no errors in next gcc versions:=0A= >=0A= > CC virtual_pmd.o=0A= > CC test_link_bonding_mode4.o=0A= > cc1: warnings being treated as errors=0A= > /root/dpdk/app/test/test_link_bonding_mode4.c: In function =91test_mode4_= expired=92:=0A= > /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:645: error: dere= ferencing pointer =91pkt.409=92 does break strict-aliasing rules=0A= > /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:729: error: dere= ferencing pointer =91pkt.409=92 does break strict-aliasing rules=0A= > ...=0A= > cc1: warnings being treated as errors=0A= > /root/dpdk/app/test/virtual_pmd.c: In function =91virtual_ethdev_stats_re= set=92:=0A= > /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:645: error: dere= ferencing pointer =91pkt.338=92 does break strict-aliasing rules=0A= > /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_ring.h:729: error: dere= ferencing pointer =91pkt.338=92 does break strict-aliasing rules=0A= >=0A= > This patch fixes the compilation by disabling=0A= > these warnings.=0A= >=0A= > Signed-off-by: Pablo de Lara =0A= > ---=0A= > app/test/Makefile | 5 +++++=0A= > 1 files changed, 5 insertions(+), 0 deletions(-)=0A= >=0A= > diff --git a/app/test/Makefile b/app/test/Makefile=0A= > index 4aca77c..0d62d07 100644=0A= > --- a/app/test/Makefile=0A= > +++ b/app/test/Makefile=0A= > @@ -158,6 +158,11 @@ CFLAGS_test_memcpy_perf.o +=3D -fno-var-tracking-ass= ignments=0A= > endif=0A= > endif=0A= > =0A= > +# Disable warnings of no-strict-aliasing in virtual_pmd=0A= > +# and test_link_bonding_mode4 tests=0A= > +CFLAGS_virtual_pmd.o +=3D -Wno-strict-aliasing=0A= > +CFLAGS_test_link_bonding_mode4.o +=3D -Wno-strict-aliasing=0A= > +=0A= > # this application needs libraries first=0A= > DEPDIRS-y +=3D lib=0A= > =0A= =0A=