Re: [dpdk-dev] [PATCH v2] x86/eal: gcc 10 ignore stringop-overflow warnings

2020-04-17 Thread Kevin Traynor
On 17/04/2020 11:13, Thomas Monjalon wrote: > 17/04/2020 11:33, Bruce Richardson: >> On Thu, Apr 16, 2020 at 07:45:49PM +0100, Kevin Traynor wrote: >>> stringop-overflow warns when it sees a possible overflow >>> in a string operation. >>> >>> In the rte_memcpy functions different branches are take

Re: [dpdk-dev] [PATCH v2] x86/eal: gcc 10 ignore stringop-overflow warnings

2020-04-17 Thread Kevin Traynor
On 17/04/2020 10:33, Bruce Richardson wrote: > On Thu, Apr 16, 2020 at 07:45:49PM +0100, Kevin Traynor wrote: >> stringop-overflow warns when it sees a possible overflow >> in a string operation. >> >> In the rte_memcpy functions different branches are taken >> depending on the size. stringop-overf

Re: [dpdk-dev] [PATCH v2] x86/eal: gcc 10 ignore stringop-overflow warnings

2020-04-17 Thread Thomas Monjalon
17/04/2020 11:33, Bruce Richardson: > On Thu, Apr 16, 2020 at 07:45:49PM +0100, Kevin Traynor wrote: > > stringop-overflow warns when it sees a possible overflow > > in a string operation. > > > > In the rte_memcpy functions different branches are taken > > depending on the size. stringop-overflow

Re: [dpdk-dev] [PATCH v2] x86/eal: gcc 10 ignore stringop-overflow warnings

2020-04-17 Thread Bruce Richardson
On Thu, Apr 16, 2020 at 07:45:49PM +0100, Kevin Traynor wrote: > stringop-overflow warns when it sees a possible overflow > in a string operation. > > In the rte_memcpy functions different branches are taken > depending on the size. stringop-overflow is raised for the > branches in the function wh

[dpdk-dev] [PATCH v2] x86/eal: gcc 10 ignore stringop-overflow warnings

2020-04-16 Thread Kevin Traynor
stringop-overflow warns when it sees a possible overflow in a string operation. In the rte_memcpy functions different branches are taken depending on the size. stringop-overflow is raised for the branches in the function where it sees the static size of the src could be overflowed. However, in re