[dpdk-dev] [PATCH] A fix to work around strict-aliasing rules breaking

2015-03-09 Thread Thomas Monjalon
> > Fixed strict-aliasing rules breaking errors for some GCC version. > > > > Signed-off-by: Zhihong Wang > > Acked-by:Cunming Liang > Applied, thanks

[dpdk-dev] [PATCH] A fix to work around strict-aliasing rules breaking

2015-03-09 Thread Qiu, Michael
On 3/2/2015 5:04 PM, zhihong.wang at intel.com wrote: > Fixed strict-aliasing rules breaking errors for some GCC version. > > Signed-off-by: Zhihong Wang > --- As this should be a quick fix, this workaround is workable. Acked-by: Michael Qiu > .../common/include/arch/x86/rte_memcpy.h

[dpdk-dev] [PATCH] A fix to work around strict-aliasing rules breaking

2015-03-06 Thread Liang, Cunming
Hi, On 3/2/2015 5:03 PM, zhihong.wang at intel.com wrote: > Fixed strict-aliasing rules breaking errors for some GCC version. > > Signed-off-by: Zhihong Wang > --- > .../common/include/arch/x86/rte_memcpy.h | 44 > -- > 1 file changed, 24 insertions(+), 20 deleti

[dpdk-dev] [PATCH] A fix to work around strict-aliasing rules breaking

2015-03-05 Thread Thomas Monjalon
2015-03-02 17:03, zhihong.wang at intel.com: > Fixed strict-aliasing rules breaking errors for some GCC version. > > Signed-off-by: Zhihong Wang > --- > .../common/include/arch/x86/rte_memcpy.h | 44 > -- > 1 file changed, 24 insertions(+), 20 deletions(-) > > dif

[dpdk-dev] [PATCH] A fix to work around strict-aliasing rules breaking

2015-03-04 Thread Bruce Richardson
On Wed, Mar 04, 2015 at 02:07:20AM +, Wang, Zhihong wrote: > > > > -Original Message- > > From: Richardson, Bruce > > Sent: Monday, March 02, 2015 6:32 PM > > To: Wang, Zhihong > > Cc: dev at dpdk.org > > Subject: Re: [dpdk-dev] [PATCH]

[dpdk-dev] [PATCH] A fix to work around strict-aliasing rules breaking

2015-03-04 Thread Wang, Zhihong
> -Original Message- > From: Wodkowski, PawelX > Sent: Monday, March 02, 2015 8:32 PM > To: Richardson, Bruce; Wang, Zhihong > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] A fix to work around strict-aliasing rules > breaking > > On 2015-03-02 11

[dpdk-dev] [PATCH] A fix to work around strict-aliasing rules breaking

2015-03-04 Thread Wang, Zhihong
> -Original Message- > From: Richardson, Bruce > Sent: Monday, March 02, 2015 6:32 PM > To: Wang, Zhihong > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] A fix to work around strict-aliasing rules > breaking > > On Mon, Mar 02, 2015 at 05:03:50PM +0800

[dpdk-dev] [PATCH] A fix to work around strict-aliasing rules breaking

2015-03-02 Thread zhihong.w...@intel.com
Fixed strict-aliasing rules breaking errors for some GCC version. Signed-off-by: Zhihong Wang --- .../common/include/arch/x86/rte_memcpy.h | 44 -- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h b

[dpdk-dev] [PATCH] A fix to work around strict-aliasing rules breaking

2015-03-02 Thread Pawel Wodkowski
On 2015-03-02 11:32, Bruce Richardson wrote: > On Mon, Mar 02, 2015 at 05:03:50PM +0800, zhihong.wang at intel.com wrote: >> Fixed strict-aliasing rules breaking errors for some GCC version. >> > > This looks messy. Also, I believe the definition of memcpy should include > the "restrict" keyword to

[dpdk-dev] [PATCH] A fix to work around strict-aliasing rules breaking

2015-03-02 Thread Bruce Richardson
On Mon, Mar 02, 2015 at 05:03:50PM +0800, zhihong.wang at intel.com wrote: > Fixed strict-aliasing rules breaking errors for some GCC version. > This looks messy. Also, I believe the definition of memcpy should include the "restrict" keyword to indicate that source and dest can't overlap. Might t