[dpdk-dev] [PATCH] net/ice/base: fix build error for GCC 4.8.5
David Marchand
david.marchand at redhat.com
Tue Oct 5 15:57:27 CEST 2021
On Tue, Oct 5, 2021 at 2:07 PM Aman Singh <aman.deep.singh at intel.com> wrote:
>
> Code changes done for build issue as reported in Bug 817
> error: dereferencing type-punned pointer will break strict-aliasing rules.
> added union to avoid pointer dereferencing
>
About the title, Ali reproduced the issue with other versions of gcc.
This patch touches base/ code, is Intel ok with this?
Else, we could consider disabling strict aliasing for the base driver, like
$ git grep alias '**/base/meson.build'
drivers/net/fm10k/base/meson.build: '-Wno-strict-aliasing',
'-Wno-format-extra-args',
drivers/net/i40e/base/meson.build: '-Wno-strict-aliasing',
'-Wno-unused-but-set-variable',
drivers/net/qede/base/meson.build: '-Wno-strict-aliasing',
Bugzilla ID: 817
> Fixes: 39925373a333 ("net/ice/base: add parser execution main loop")
No Cc: stable, this is a regression in main.
> Signed-off-by: Aman Singh <aman.deep.singh at intel.com>
Tested-by: David Marchand <david.marchand at redhat.com>
--
David Marchand
More information about the dev
mailing list