diff options
author | Benoît Ganne <bganne@cisco.com> | 2020-04-24 10:44:40 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-08-13 17:20:47 +0000 |
commit | 88d730c09e14c16e93006b68ee08ddf39fe132d9 (patch) | |
tree | 9ceda1d20a557656c6bff4b13aed59ec94704fd7 /src/vppinfra/memcpy_sse3.h | |
parent | bfbbb1855e976c0c1b336fe2b9bea81fac7567a3 (diff) |
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 a66971f980187efd03a84d340b80a7d3cf39deac)
Diffstat (limited to 'src/vppinfra/memcpy_sse3.h')
-rw-r--r-- | src/vppinfra/memcpy_sse3.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vppinfra/memcpy_sse3.h b/src/vppinfra/memcpy_sse3.h index 5346e913817..d9e4ac668e9 100644 --- a/src/vppinfra/memcpy_sse3.h +++ b/src/vppinfra/memcpy_sse3.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 |