net/bnxt: consolidate template table processing
[dpdk.git] / lib / librte_eal / ppc / include / rte_memcpy.h
index d685b7b..c2a1f35 100644 (file)
@@ -10,6 +10,7 @@
 #include <string.h>
 
 #include "rte_altivec.h"
+#include "rte_common.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -17,6 +18,11 @@ extern "C" {
 
 #include "generic/rte_memcpy.h"
 
+#if (GCC_VERSION >= 90000 && GCC_VERSION < 90400)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
+
 static inline void
 rte_mov16(uint8_t *dst, const uint8_t *src)
 {
@@ -192,6 +198,10 @@ rte_memcpy_func(void *dst, const void *src, size_t n)
        return ret;
 }
 
+#if (GCC_VERSION >= 90000 && GCC_VERSION < 90400)
+#pragma GCC diagnostic pop
+#endif
+
 #ifdef __cplusplus
 }
 #endif