vppinfra: selectively disable false-positive GCC-10 warnings
GCC-10 increase overflows-related warnings but is confused by SIMD
operations.
Type: fix
Change-Id: Iafde754c2fbec60e2d0a328f295b1f5c156d8234
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit a66971f980
)
This commit is contained in:

committed by
Andrew Yourtchenko

parent
bfbbb1855e
commit
88d730c09e
@ -50,6 +50,11 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <x86intrin.h>
|
||||
#include <vppinfra/warnings.h>
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
WARN_OFF (stringop-overflow)
|
||||
/* *INDENT-ON* */
|
||||
|
||||
static inline void
|
||||
clib_mov16 (u8 * dst, const u8 * src)
|
||||
@ -228,6 +233,9 @@ clib_memcpy_fast (void *dst, const void *src, size_t n)
|
||||
goto COPY_BLOCK_128_BACK31;
|
||||
}
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
WARN_ON (stringop-overflow)
|
||||
/* *INDENT-ON* */
|
||||
|
||||
#endif /* included_clib_memcpy_avx2_h */
|
||||
|
||||
|
@ -50,6 +50,11 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <x86intrin.h>
|
||||
#include <vppinfra/warnings.h>
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
WARN_OFF (stringop-overflow)
|
||||
/* *INDENT-ON* */
|
||||
|
||||
static inline void
|
||||
clib_mov16 (u8 * dst, const u8 * src)
|
||||
@ -264,6 +269,9 @@ clib_memcpy_fast (void *dst, const void *src, size_t n)
|
||||
goto COPY_BLOCK_128_BACK63;
|
||||
}
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
WARN_ON (stringop-overflow)
|
||||
/* *INDENT-ON* */
|
||||
|
||||
#endif /* included_clib_memcpy_avx512_h */
|
||||
|
||||
|
@ -50,6 +50,11 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <x86intrin.h>
|
||||
#include <vppinfra/warnings.h>
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
WARN_OFF (stringop-overflow)
|
||||
/* *INDENT-ON* */
|
||||
|
||||
static inline void
|
||||
clib_mov16 (u8 * dst, const u8 * src)
|
||||
@ -344,6 +349,9 @@ clib_memcpy_fast (void *dst, const void *src, size_t n)
|
||||
goto COPY_BLOCK_64_BACK15;
|
||||
}
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
WARN_ON (stringop-overflow)
|
||||
/* *INDENT-ON* */
|
||||
|
||||
#undef CLIB_MVUNALIGN_LEFT47_IMM
|
||||
#undef CLIB_MVUNALIGN_LEFT47
|
||||
|
Reference in New Issue
Block a user