* [PATCH dpdk] ring: split 128-bit pair copies for unoptimized GCC
@ 2026-11-30 12:29 Robin Jarry
2026-11-30 14:04 ` [PATCH dpdk v2] " Robin Jarry
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Robin Jarry @ 2026-11-30 12:29 UTC (permalink / raw)
To: dev, Konstantin Ananyev, Wathsala Vithanage, Morten Brørup,
Stephen Hemminger
Cc: stable
GCC 14 and 16 at -O0 report -Wstringop-overread when an inlined
ring enqueue receives a 24-byte item. Without optimization, GCC
diagnoses the 32-byte memcpy in the unreachable 128-bit copy path.
The unoptimized-build warning flag does not apply to applications
compiling DPDK headers, and the header-local suppression is gone.
Copy the pair as two 16-byte elements instead. This avoids the
false warning without suppressing diagnostics for applications.
Optimized x86-64 code still uses two 16-byte loads and stores.
Fixes: 812a18c167f4 ("build: disable GCC string op warnings when unoptimized")
Cc: stable@dpdk.org
Signed-off-by: Robin Jarry <rjarry@redhat.com>
---
lib/ring/rte_ring_elem_pvt.h | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/ring/rte_ring_elem_pvt.h b/lib/ring/rte_ring_elem_pvt.h
index 404bf1d8d24e..37e900b70d5b 100644
--- a/lib/ring/rte_ring_elem_pvt.h
+++ b/lib/ring/rte_ring_elem_pvt.h
@@ -98,9 +98,12 @@ __rte_ring_enqueue_elems_128(void *ring_table, const void *obj_table,
const rte_int128_t *obj = (const rte_int128_t *)obj_table;
if (likely(idx + n <= size)) {
- for (i = 0; i < (n & ~0x1); i += 2, idx += 2)
+ for (i = 0; i < (n & ~0x1); i += 2, idx += 2) {
memcpy((void *)(ring + idx),
- (const void *)(obj + i), 32);
+ (const void *)(obj + i), 16);
+ memcpy((void *)(ring + idx + 1),
+ (const void *)(obj + i + 1), 16);
+ }
switch (n & 0x1) {
case 1:
memcpy((void *)(ring + idx),
--
2.56.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH dpdk v2] ring: split 128-bit pair copies for unoptimized GCC
2026-11-30 12:29 [PATCH dpdk] ring: split 128-bit pair copies for unoptimized GCC Robin Jarry
@ 2026-11-30 14:04 ` Robin Jarry
2026-11-30 14:04 ` [PATCH dpdk] " Morten Brørup
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Robin Jarry @ 2026-11-30 14:04 UTC (permalink / raw)
To: dev, Konstantin Ananyev, Wathsala Vithanage, Morten Brørup,
Stephen Hemminger
Cc: stable
GCC 14 and 16 at -O0 report -Wstringop-overread for a 24-byte
enqueue item, and GCC 14 reports -Wstringop-overflow for an
8-byte dequeue destination. Both warnings come from 32-byte copies
in unreachable 128-bit paths of inlined ring operations. The
unoptimized-build warning flag does not cover applications compiling
DPDK headers, and the header-local suppression is gone.
Split each pair into 16-byte copies to avoid these false warnings
without suppressing diagnostics for applications.
Fixes: 812a18c167f4 ("build: disable GCC string op warnings when unoptimized")
Cc: stable@dpdk.org
Signed-off-by: Robin Jarry <rjarry@redhat.com>
---
Notes:
v2: also fix the dequeue path
lib/ring/rte_ring_elem_pvt.h | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/lib/ring/rte_ring_elem_pvt.h b/lib/ring/rte_ring_elem_pvt.h
index 404bf1d8d24e..b3552fe5df91 100644
--- a/lib/ring/rte_ring_elem_pvt.h
+++ b/lib/ring/rte_ring_elem_pvt.h
@@ -98,9 +98,12 @@ __rte_ring_enqueue_elems_128(void *ring_table, const void *obj_table,
const rte_int128_t *obj = (const rte_int128_t *)obj_table;
if (likely(idx + n <= size)) {
- for (i = 0; i < (n & ~0x1); i += 2, idx += 2)
+ for (i = 0; i < (n & ~0x1); i += 2, idx += 2) {
memcpy((void *)(ring + idx),
- (const void *)(obj + i), 32);
+ (const void *)(obj + i), 16);
+ memcpy((void *)(ring + idx + 1),
+ (const void *)(obj + i + 1), 16);
+ }
switch (n & 0x1) {
case 1:
memcpy((void *)(ring + idx),
@@ -240,8 +243,10 @@ __rte_ring_dequeue_elems_128(void *obj_table, const void *ring_table,
const rte_int128_t *ring = (const rte_int128_t *)ring_table;
if (likely(idx + n <= size)) {
- for (i = 0; i < (n & ~0x1); i += 2, idx += 2)
- memcpy((obj + i), (const void *)(ring + idx), 32);
+ for (i = 0; i < (n & ~0x1); i += 2, idx += 2) {
+ memcpy((obj + i), (const void *)(ring + idx), 16);
+ memcpy((obj + i + 1), (const void *)(ring + idx + 1), 16);
+ }
switch (n & 0x1) {
case 1:
memcpy((obj + i), (const void *)(ring + idx), 16);
--
2.56.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* RE: [PATCH dpdk] ring: split 128-bit pair copies for unoptimized GCC
2026-11-30 12:29 [PATCH dpdk] ring: split 128-bit pair copies for unoptimized GCC Robin Jarry
2026-11-30 14:04 ` [PATCH dpdk v2] " Robin Jarry
@ 2026-11-30 14:04 ` Morten Brørup
2026-11-30 14:14 ` Bruce Richardson
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Morten Brørup @ 2026-11-30 14:04 UTC (permalink / raw)
To: Robin Jarry, dev, Konstantin Ananyev, Wathsala Vithanage,
Stephen Hemminger
Cc: stable
> From: Robin Jarry [mailto:rjarry@redhat.com]
> Sent: Monday, 30 November 2026 13.30
>
> GCC 14 and 16 at -O0 report -Wstringop-overread when an inlined
> ring enqueue receives a 24-byte item. Without optimization, GCC
> diagnoses the 32-byte memcpy in the unreachable 128-bit copy path.
> The unoptimized-build warning flag does not apply to applications
> compiling DPDK headers, and the header-local suppression is gone.
>
> Copy the pair as two 16-byte elements instead. This avoids the
> false warning without suppressing diagnostics for applications.
> Optimized x86-64 code still uses two 16-byte loads and stores.
"still uses"
Didn't AVX optimized use
>
> Fixes: 812a18c167f4 ("build: disable GCC string op warnings when
> unoptimized")
> Cc: stable@dpdk.org
> Signed-off-by: Robin Jarry <rjarry@redhat.com>
> ---
> lib/ring/rte_ring_elem_pvt.h | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/lib/ring/rte_ring_elem_pvt.h
> b/lib/ring/rte_ring_elem_pvt.h
> index 404bf1d8d24e..37e900b70d5b 100644
> --- a/lib/ring/rte_ring_elem_pvt.h
> +++ b/lib/ring/rte_ring_elem_pvt.h
> @@ -98,9 +98,12 @@ __rte_ring_enqueue_elems_128(void *ring_table, const
> void *obj_table,
> const rte_int128_t *obj = (const rte_int128_t *)obj_table;
>
> if (likely(idx + n <= size)) {
> - for (i = 0; i < (n & ~0x1); i += 2, idx += 2)
> + for (i = 0; i < (n & ~0x1); i += 2, idx += 2) {
> memcpy((void *)(ring + idx),
> - (const void *)(obj + i), 32);
> + (const void *)(obj + i), 16);
> + memcpy((void *)(ring + idx + 1),
> + (const void *)(obj + i + 1), 16);
> + }
> switch (n & 0x1) {
> case 1:
> memcpy((void *)(ring + idx),
> --
> 2.56.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH dpdk] ring: split 128-bit pair copies for unoptimized GCC
2026-11-30 12:29 [PATCH dpdk] ring: split 128-bit pair copies for unoptimized GCC Robin Jarry
2026-11-30 14:04 ` [PATCH dpdk v2] " Robin Jarry
2026-11-30 14:04 ` [PATCH dpdk] " Morten Brørup
@ 2026-11-30 14:14 ` Bruce Richardson
2026-11-30 15:57 ` Robin Jarry
2026-11-30 14:33 ` Morten Brørup
2026-12-01 9:01 ` [PATCH dpdk v3] ring: suppress unoptimized GCC string warnings locally Robin Jarry
4 siblings, 1 reply; 8+ messages in thread
From: Bruce Richardson @ 2026-11-30 14:14 UTC (permalink / raw)
To: Robin Jarry
Cc: dev, Konstantin Ananyev, Wathsala Vithanage, Morten Brørup,
Stephen Hemminger, stable
On Mon, Nov 30, 2026 at 01:29:30PM +0100, Robin Jarry wrote:
> GCC 14 and 16 at -O0 report -Wstringop-overread when an inlined
> ring enqueue receives a 24-byte item. Without optimization, GCC
> diagnoses the 32-byte memcpy in the unreachable 128-bit copy path.
> The unoptimized-build warning flag does not apply to applications
> compiling DPDK headers, and the header-local suppression is gone.
>
> Copy the pair as two 16-byte elements instead. This avoids the
> false warning without suppressing diagnostics for applications.
> Optimized x86-64 code still uses two 16-byte loads and stores.
>
> Fixes: 812a18c167f4 ("build: disable GCC string op warnings when unoptimized")
> Cc: stable@dpdk.org
> Signed-off-by: Robin Jarry <rjarry@redhat.com>
> ---
> lib/ring/rte_ring_elem_pvt.h | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
Forgive my ignorance here, but is this solving the underlying issue or just
tweaking the code to hide the warning. Given a 24-byte object, is two
16-byte copies not just as bad as a single 32-byte copies?
/Bruce
PS: AI analysis and testing of this patch also flags that when compiled for an
architecture with AVX2 available, the original code produces one 32-byte
load-store, vs two 16-byte load-stores for the updated code. Therefore,
there is potential for a regression here for any cases where we may be load
or store bounded.
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [PATCH dpdk] ring: split 128-bit pair copies for unoptimized GCC
2026-11-30 12:29 [PATCH dpdk] ring: split 128-bit pair copies for unoptimized GCC Robin Jarry
` (2 preceding siblings ...)
2026-11-30 14:14 ` Bruce Richardson
@ 2026-11-30 14:33 ` Morten Brørup
2026-12-01 9:01 ` [PATCH dpdk v3] ring: suppress unoptimized GCC string warnings locally Robin Jarry
4 siblings, 0 replies; 8+ messages in thread
From: Morten Brørup @ 2026-11-30 14:33 UTC (permalink / raw)
To: Robin Jarry, dev, Konstantin Ananyev, Wathsala Vithanage,
Stephen Hemminger, Bruce Richardson
Cc: stable
> From: Robin Jarry [mailto:rjarry@redhat.com]
> Sent: Monday, 30 November 2026 13.30
>
> GCC 14 and 16 at -O0 report -Wstringop-overread when an inlined
> ring enqueue receives a 24-byte item. Without optimization, GCC
> diagnoses the 32-byte memcpy in the unreachable 128-bit copy path.
> The unoptimized-build warning flag does not apply to applications
> compiling DPDK headers, and the header-local suppression is gone.
I suppose this is what you are referring to:
https://patchwork.dpdk.org/project/dpdk/patch/20261020145541.388371-1-stephen@networkplumber.org/
Maybe that needs to be moved from a meson file into a common header file instead, so it also applies to applications compiling DPDK header files.
@Bruce, would /lib/eal/include/rte_compat.h or rte_common.h be a good place for this? Or someplace else?
Before we move it, we should ask ourselves if it is acceptable to apply such a policy at application level; it would affect the application as a whole, not just the DPDK parts of the application.
Maybe we should re-introduce the header-local suppressions? (With comments describing that it is for compiling applications, not for compiling DPDK.)
>
> Copy the pair as two 16-byte elements instead. This avoids the
> false warning without suppressing diagnostics for applications.
> Optimized x86-64 code still uses two 16-byte loads and stores.
"still uses"
AVX optimized uses one 32-byte load and store:
https://godbolt.org/z/3T76jsc9E
Please find another workaround.
>
> Fixes: 812a18c167f4 ("build: disable GCC string op warnings when
> unoptimized")
> Cc: stable@dpdk.org
> Signed-off-by: Robin Jarry <rjarry@redhat.com>
> ---
> lib/ring/rte_ring_elem_pvt.h | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/lib/ring/rte_ring_elem_pvt.h
> b/lib/ring/rte_ring_elem_pvt.h
> index 404bf1d8d24e..37e900b70d5b 100644
> --- a/lib/ring/rte_ring_elem_pvt.h
> +++ b/lib/ring/rte_ring_elem_pvt.h
> @@ -98,9 +98,12 @@ __rte_ring_enqueue_elems_128(void *ring_table, const
> void *obj_table,
> const rte_int128_t *obj = (const rte_int128_t *)obj_table;
>
> if (likely(idx + n <= size)) {
> - for (i = 0; i < (n & ~0x1); i += 2, idx += 2)
> + for (i = 0; i < (n & ~0x1); i += 2, idx += 2) {
> memcpy((void *)(ring + idx),
> - (const void *)(obj + i), 32);
> + (const void *)(obj + i), 16);
> + memcpy((void *)(ring + idx + 1),
> + (const void *)(obj + i + 1), 16);
> + }
> switch (n & 0x1) {
> case 1:
> memcpy((void *)(ring + idx),
> --
> 2.56.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH dpdk] ring: split 128-bit pair copies for unoptimized GCC
2026-11-30 14:14 ` Bruce Richardson
@ 2026-11-30 15:57 ` Robin Jarry
0 siblings, 0 replies; 8+ messages in thread
From: Robin Jarry @ 2026-11-30 15:57 UTC (permalink / raw)
To: Bruce Richardson
Cc: dev, Konstantin Ananyev, Wathsala Vithanage, Morten Brørup,
Stephen Hemminger, stable
Bruce Richardson, Nov 30, 2026 at 15:14:
> On Mon, Nov 30, 2026 at 01:29:30PM +0100, Robin Jarry wrote:
>> GCC 14 and 16 at -O0 report -Wstringop-overread when an inlined
>> ring enqueue receives a 24-byte item. Without optimization, GCC
>> diagnoses the 32-byte memcpy in the unreachable 128-bit copy path.
>> The unoptimized-build warning flag does not apply to applications
>> compiling DPDK headers, and the header-local suppression is gone.
>>
>> Copy the pair as two 16-byte elements instead. This avoids the
>> false warning without suppressing diagnostics for applications.
>> Optimized x86-64 code still uses two 16-byte loads and stores.
>>
>> Fixes: 812a18c167f4 ("build: disable GCC string op warnings when unoptimized")
>> Cc: stable@dpdk.org
>> Signed-off-by: Robin Jarry <rjarry@redhat.com>
>> ---
>> lib/ring/rte_ring_elem_pvt.h | 7 +++++--
>> 1 file changed, 5 insertions(+), 2 deletions(-)
>>
> Forgive my ignorance here, but is this solving the underlying issue or just
> tweaking the code to hide the warning. Given a 24-byte object, is two
> 16-byte copies not just as bad as a single 32-byte copies?
Possibly just hiding the warning :D
I'll send a v3 that re-establishes the local warning suppressions
instead.
>
> /Bruce
>
> PS: AI analysis and testing of this patch also flags that when compiled for an
> architecture with AVX2 available, the original code produces one 32-byte
> load-store, vs two 16-byte load-stores for the updated code. Therefore,
> there is potential for a regression here for any cases where we may be load
> or store bounded.
--
Robin
# Avoid contact with skin.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH dpdk v3] ring: suppress unoptimized GCC string warnings locally
2026-11-30 12:29 [PATCH dpdk] ring: split 128-bit pair copies for unoptimized GCC Robin Jarry
` (3 preceding siblings ...)
2026-11-30 14:33 ` Morten Brørup
@ 2026-12-01 9:01 ` Robin Jarry
2026-12-01 9:08 ` Morten Brørup
4 siblings, 1 reply; 8+ messages in thread
From: Robin Jarry @ 2026-12-01 9:01 UTC (permalink / raw)
To: dev, Konstantin Ananyev, Wathsala Vithanage, Stephen Hemminger,
Morten Brørup
Cc: stable
The global_cflags change in 812a18c167f4 ("build: disable GCC string
op warnings when unoptimized") only applies to DPDK's own build. It is
not propagated through pkg-config or as subproject exported flags, so
applications that pull in rte_ring_elem_pvt.h and build at -O0 with
GCC 14 or GCC 16 still hit the stringop-overflow/stringop-overread
false positives, and treating warnings as errors turns that into a
compile error.
Pragmas are generally discouraged in DPDK, but there is no other way
to suppress a warning for code included by an external application
build. Restrict the pragmas to the 128-bit copy helpers so application
diagnostics stay enabled everywhere else.
Unlike the pragmas these replace, which disabled the warnings
unconditionally from GCC 12 onward, these only apply with GCC *and*
-O0, matching the condition in config/meson.build. The version check
is dropped because it is unclear which GCC versions are actually
affected.
Fixes: 812a18c167f4 ("build: disable GCC string op warnings when unoptimized")
Cc: stable@dpdk.org
Signed-off-by: Robin Jarry <rjarry@redhat.com>
---
Notes:
v3: replaced nonsense hack with local warnings suppressions
v2: also fix the dequeue path
lib/ring/rte_ring_elem_pvt.h | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/lib/ring/rte_ring_elem_pvt.h b/lib/ring/rte_ring_elem_pvt.h
index 77a2efafe119..185c26281005 100644
--- a/lib/ring/rte_ring_elem_pvt.h
+++ b/lib/ring/rte_ring_elem_pvt.h
@@ -90,6 +90,13 @@ __rte_ring_enqueue_elems_64(void *ring_table, const void *obj_table,
}
}
+/* DPDK's -O0 warning flags do not apply to applications including this header. */
+#if defined(RTE_TOOLCHAIN_GCC) && !defined(__OPTIMIZE__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstringop-overflow"
+#pragma GCC diagnostic ignored "-Wstringop-overread"
+#endif
+
static __rte_always_inline void
__rte_ring_enqueue_elems_128(void *ring_table, const void *obj_table,
uint32_t size, uint32_t idx, uint32_t n)
@@ -119,6 +126,10 @@ __rte_ring_enqueue_elems_128(void *ring_table, const void *obj_table,
}
}
+#if defined(RTE_TOOLCHAIN_GCC) && !defined(__OPTIMIZE__)
+#pragma GCC diagnostic pop
+#endif
+
/* the actual enqueue of elements on the ring.
* Placed here since identical code needed in both
* single and multi producer enqueue functions.
@@ -233,6 +244,12 @@ __rte_ring_dequeue_elems_64(void *obj_table, const void *ring_table,
}
}
+#if defined(RTE_TOOLCHAIN_GCC) && !defined(__OPTIMIZE__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstringop-overflow"
+#pragma GCC diagnostic ignored "-Wstringop-overread"
+#endif
+
static __rte_always_inline void
__rte_ring_dequeue_elems_128(void *obj_table, const void *ring_table,
uint32_t size, uint32_t idx, uint32_t n)
@@ -257,6 +274,10 @@ __rte_ring_dequeue_elems_128(void *obj_table, const void *ring_table,
}
}
+#if defined(RTE_TOOLCHAIN_GCC) && !defined(__OPTIMIZE__)
+#pragma GCC diagnostic pop
+#endif
+
/* the actual dequeue of elements from the ring.
* Placed here since identical code needed in both
* single and multi producer enqueue functions.
--
2.56.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* RE: [PATCH dpdk v3] ring: suppress unoptimized GCC string warnings locally
2026-12-01 9:01 ` [PATCH dpdk v3] ring: suppress unoptimized GCC string warnings locally Robin Jarry
@ 2026-12-01 9:08 ` Morten Brørup
0 siblings, 0 replies; 8+ messages in thread
From: Morten Brørup @ 2026-12-01 9:08 UTC (permalink / raw)
To: Robin Jarry, dev, Konstantin Ananyev, Wathsala Vithanage,
Stephen Hemminger
Cc: stable, Bruce Richardson
> From: Robin Jarry [mailto:rjarry@redhat.com]
> Sent: Tuesday, 1 December 2026 10.01
>
> The global_cflags change in 812a18c167f4 ("build: disable GCC string
> op warnings when unoptimized") only applies to DPDK's own build. It is
> not propagated through pkg-config or as subproject exported flags, so
> applications that pull in rte_ring_elem_pvt.h and build at -O0 with
> GCC 14 or GCC 16 still hit the stringop-overflow/stringop-overread
> false positives, and treating warnings as errors turns that into a
> compile error.
>
> Pragmas are generally discouraged in DPDK, but there is no other way
> to suppress a warning for code included by an external application
> build. Restrict the pragmas to the 128-bit copy helpers so application
> diagnostics stay enabled everywhere else.
>
> Unlike the pragmas these replace, which disabled the warnings
> unconditionally from GCC 12 onward, these only apply with GCC *and*
> -O0, matching the condition in config/meson.build. The version check
> is dropped because it is unclear which GCC versions are actually
> affected.
>
> Fixes: 812a18c167f4 ("build: disable GCC string op warnings when
> unoptimized")
> Cc: stable@dpdk.org
> Signed-off-by: Robin Jarry <rjarry@redhat.com>
> ---
>
> Notes:
> v3: replaced nonsense hack with local warnings suppressions
>
> v2: also fix the dequeue path
>
> lib/ring/rte_ring_elem_pvt.h | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/lib/ring/rte_ring_elem_pvt.h
> b/lib/ring/rte_ring_elem_pvt.h
> index 77a2efafe119..185c26281005 100644
> --- a/lib/ring/rte_ring_elem_pvt.h
> +++ b/lib/ring/rte_ring_elem_pvt.h
> @@ -90,6 +90,13 @@ __rte_ring_enqueue_elems_64(void *ring_table, const
> void *obj_table,
> }
> }
>
> +/* DPDK's -O0 warning flags do not apply to applications including
> this header. */
> +#if defined(RTE_TOOLCHAIN_GCC) && !defined(__OPTIMIZE__)
> +#pragma GCC diagnostic push
> +#pragma GCC diagnostic ignored "-Wstringop-overflow"
> +#pragma GCC diagnostic ignored "-Wstringop-overread"
> +#endif
> +
> static __rte_always_inline void
> __rte_ring_enqueue_elems_128(void *ring_table, const void *obj_table,
> uint32_t size, uint32_t idx, uint32_t n)
> @@ -119,6 +126,10 @@ __rte_ring_enqueue_elems_128(void *ring_table,
> const void *obj_table,
> }
> }
>
> +#if defined(RTE_TOOLCHAIN_GCC) && !defined(__OPTIMIZE__)
> +#pragma GCC diagnostic pop
> +#endif
> +
> /* the actual enqueue of elements on the ring.
> * Placed here since identical code needed in both
> * single and multi producer enqueue functions.
> @@ -233,6 +244,12 @@ __rte_ring_dequeue_elems_64(void *obj_table, const
> void *ring_table,
> }
> }
>
> +#if defined(RTE_TOOLCHAIN_GCC) && !defined(__OPTIMIZE__)
> +#pragma GCC diagnostic push
> +#pragma GCC diagnostic ignored "-Wstringop-overflow"
> +#pragma GCC diagnostic ignored "-Wstringop-overread"
> +#endif
> +
> static __rte_always_inline void
> __rte_ring_dequeue_elems_128(void *obj_table, const void *ring_table,
> uint32_t size, uint32_t idx, uint32_t n)
> @@ -257,6 +274,10 @@ __rte_ring_dequeue_elems_128(void *obj_table,
> const void *ring_table,
> }
> }
>
> +#if defined(RTE_TOOLCHAIN_GCC) && !defined(__OPTIMIZE__)
> +#pragma GCC diagnostic pop
> +#endif
> +
> /* the actual dequeue of elements from the ring.
> * Placed here since identical code needed in both
> * single and multi producer enqueue functions.
> --
> 2.56.1
Reviewed-by: Morten Brørup <mb@smartsharesystems.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-12-01 9:08 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 12:29 [PATCH dpdk] ring: split 128-bit pair copies for unoptimized GCC Robin Jarry
2026-11-30 14:04 ` [PATCH dpdk v2] " Robin Jarry
2026-11-30 14:04 ` [PATCH dpdk] " Morten Brørup
2026-11-30 14:14 ` Bruce Richardson
2026-11-30 15:57 ` Robin Jarry
2026-11-30 14:33 ` Morten Brørup
2026-12-01 9:01 ` [PATCH dpdk v3] ring: suppress unoptimized GCC string warnings locally Robin Jarry
2026-12-01 9:08 ` Morten Brørup
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.