eal/ppc: fix build with gcc 9.3
authorDavid Christensen <drc@linux.vnet.ibm.com>
Mon, 4 May 2020 21:03:47 +0000 (14:03 -0700)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 6 May 2020 16:12:57 +0000 (18:12 +0200)
commit67889d11306a6e531be8d2fe53bc216172b90f5d
treeb016db887bb4b618fda60cfe9613df1d0d4bda10
parentb2aa2c9723796d81cb9216f3a5c5e195796985fa
eal/ppc: fix build with gcc 9.3

Building DPDK on Ubuntu 20.04 with GCC 9.3.0 results in a "subscript is
outside array bounds" message in rte_memcpy function.  The build error
is caused by an interaction between __builtin_constant_p and
"-Werror=array-bounds" as described in this bugzilla:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90387

Modify the code to disable the array-bounds check for GCC versions 9.0
to 9.3.

Cc: stable@dpdk.org
Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
lib/librte_eal/ppc/include/rte_memcpy.h