[dpdk-dev] [PATCH v2] eal: fix rte_memcpy build on ppc with gcc 9.3

David Marchand david.marchand at redhat.com
Wed May 6 18:13:50 CEST 2020


On Mon, May 4, 2020 at 11:04 PM David Christensen
<drc at linux.vnet.ibm.com> wrote:
>
> 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:

Good to know, thanks.


> 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 at dpdk.org

> Signed-off-by: David Christensen <drc at linux.vnet.ibm.com>

Applied, thanks.


-- 
David Marchand



More information about the dev mailing list