From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 65752567E for ; Wed, 9 Dec 2015 15:33:48 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP; 09 Dec 2015 06:33:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,403,1444719600"; d="scan'208";a="10262722" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga004.fm.intel.com with ESMTP; 09 Dec 2015 06:33:19 -0800 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 9 Dec 2015 06:33:17 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 9 Dec 2015 06:33:16 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.138]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.92]) with mapi id 14.03.0248.002; Wed, 9 Dec 2015 22:33:04 +0800 From: "Xie, Huawei" To: "De Lara Guarch, Pablo" , "dev@dpdk.org" Thread-Topic: [PATCH v5] examples/vhost: fix strict aliasing error on gcc 4.4.7 Thread-Index: AdEyjoLHoog5UpZvSfG1c9h3FzYchw== Date: Wed, 9 Dec 2015 14:33:03 +0000 Message-ID: References: <1449663630-83289-1-git-send-email-pablo.de.lara.guarch@intel.com> <1449671209-102009-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 v5] examples/vhost: fix strict aliasing error on gcc 4.4.7 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, 09 Dec 2015 14:33:48 -0000 On 12/9/2015 10:27 PM, De Lara Guarch, Pablo wrote:=0A= > From: "De Lara Guarch, Pablo" =0A= >=0A= > Fixes following error on gcc 4.4.7:=0A= >=0A= > make: Entering directory `/tmp/dpdk-tmp/examples/vhost'=0A= > CC main.o=0A= > cc1: warnings being treated as errors=0A= > /tmp/dpdk-tmp/examples/vhost/main.c: In function =91new_device=92:=0A= > /tmp/dpdk-tmp/x86_64-native-linuxapp-gcc/include/rte_ring.h:740: error:= =0A= > dereferencing pointer =91mbuf.486=92 does break strict-aliasing rules= =0A= > /tmp/dpdk-tmp/examples/vhost/main.c:1503: note: initialized from here=0A= > ...=0A= > /tmp/dpdk-tmp/examples/vhost/main.c:1503: note: initialized from here=0A= > /tmp/dpdk-tmp/x86_64-native-linuxapp-gcc/include/rte_ring.h:740: error:= =0A= > dereferencing pointer =91({anonymous})=92 does break strict-aliasing = rules=0A= > /tmp/dpdk-tmp/examples/vhost/main.c:1804: note: initialized from here=0A= > make[1]: *** [main.o] Error 1=0A= >=0A= > Fixes: d19533e8 ("examples/vhost: copy old vhost example")=0A= >=0A= > Reported-by: Qian Xu =0A= > Signed-off-by: Pablo de Lara =0A= Acked-by: Huawei Xie =0A= =0A=