Hi Thomas, > -----Original Message----- > From: Thomas Monjalon <[email protected]> > Sent: Tuesday, October 4, 2022 6:17 PM > To: Rahul Bhansali <[email protected]>; Akhil Goyal > <[email protected]> > Cc: [email protected]; [email protected]; [email protected] > Subject: [EXT] DPDK build for Arm with GCC 12 > > External Email > > ---------------------------------------------------------------------- > Hello, > > GCC 12 suspects an out-of-bound write in NEON port_groupx4(): > > In file included from examples/ipsec-secgw/ipsec_neon.h:9, > from examples/ipsec-secgw/ipsec_lpm_neon.h:9, > from examples/ipsec-secgw/ipsec_worker.c:16: > examples/common/neon/port_group.h: In function 'port_groupx4': > examples/common/neon/port_group.h:42:21: error: > array subscript 'union <anonymous>[0]' is partly outside > array bounds of 'uint16_t[5]' > 42 | pnum->u64 = gptbl[v].pnum; > | ^~ > examples/common/neon/port_group.h:21:23: note: > object 'pn' of size [0, 10] > 21 | port_groupx4(uint16_t pn[FWDSTEP + 1], uint16_t *lp, uint16x8_t dp1, > | ~~~~~~~~~^~~~~~~~~~~~~~~ > examples/common/neon/port_group.h:43:21: error: > array subscript 'union <anonymous>[0]' is partly outside > array bounds of 'uint16_t[5]' > 43 | pnum->u16[FWDSTEP] = 1; > | ^~ > examples/common/neon/port_group.h:21:23: note: > object 'pn' of size [0, 10] > 21 | port_groupx4(uint16_t pn[FWDSTEP + 1], uint16_t *lp, uint16x8_t dp1, > | ~~~~~~~~~^~~~~~~~~~~~~~~ > > Please could you help fixing it? This is already addressed in http://patches.dpdk.org/project/dpdk/patch/[email protected]/ by @Amit Prakash Shukla .
>

