01ac23460c
With -f-strict-aliasing enabled by default from -O2, gcc > 5.x gives
undefined behavior in port_groupx4 in ARM. 'pn' and 'pnum' are
two different pointers pointing to same chunk of memory and
with -f-strict-aliasing the pointers are assumed to be pointing to
different memory and compiler reorders instructions that depend on
pnum and pn. This breaks port grouping algorithm.
This patch eliminates the above problem by introducing a compiler
barrier between the instructions that depend on pnum, pn and lp.
Fixes:
|
||
---|---|---|
.. | ||
l3fwd_altivec.h | ||
l3fwd_common.h | ||
l3fwd_em_hlm_neon.h | ||
l3fwd_em_hlm_sse.h | ||
l3fwd_em_hlm.h | ||
l3fwd_em_sequential.h | ||
l3fwd_em.c | ||
l3fwd_em.h | ||
l3fwd_lpm_altivec.h | ||
l3fwd_lpm_neon.h | ||
l3fwd_lpm_sse.h | ||
l3fwd_lpm.c | ||
l3fwd_lpm.h | ||
l3fwd_neon.h | ||
l3fwd_sse.h | ||
l3fwd.h | ||
main.c | ||
Makefile |