From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2EBA8460F3; Thu, 23 Jan 2025 08:41:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C55AC40279; Thu, 23 Jan 2025 08:41:15 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 8AED040269 for ; Thu, 23 Jan 2025 08:41:14 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 78083460F6; Thu, 23 Jan 2025 08:41:14 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [DPDK/eventdev Bug 1576] [dpdk24.11-rc2] DPDK build failed with EXTRA_CFLAGS='-O1' on Redhat9.4 Date: Thu, 23 Jan 2025 07:41:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: eventdev X-Bugzilla-Version: 24.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tingtingx.liao@intel.com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: multipart/alternative; boundary=17376180741.D3B3D.2346340 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --17376180741.D3B3D.2346340 Date: Thu, 23 Jan 2025 08:41:14 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All https://bugs.dpdk.org/show_bug.cgi?id=3D1576 tingtingx.liao@intel.com (tingtingx.liao@intel.com) changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED --- Comment #3 from tingtingx.liao@intel.com (tingtingx.liao@intel.com) --- This issue has been fixed on higher versions of gcc(14.2+) And by the description of the following comment, will close this ticket. Comments from developers: The warning message is due to the fact that the assembly code generated by = GCC may skip the initialization of the event variable at the O1 optimization, b= ut was replaced by other instructions in O2 and O3, therefore it compiles fine. This issue does not need to be fixed considering the following reasons. 1. There is a rte_memcpy() at line number 699 which is copying response information as event into this. So, that will initialize all the event fiel= ds. We don't require to initialize events at the declaration. 2. O1 is an unusual, the default optimization level of DPDK is O3, the functions in the report are inline functions, they will be integrated into their callers at this level, skipping the initialization is not possible. 3. These warning messages appear only in the O1 optimization and not in O2 = and O3. 4. The compiler in JIRA is GCC 11.4.1, and there are no warning messages wh= en using Clang 19.1.3 and higher versions of GCC 14.2.1. --=20 You are receiving this mail because: You are the assignee for the bug.= --17376180741.D3B3D.2346340 Date: Thu, 23 Jan 2025 08:41:14 +0100 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All tingtingx.liao@intel.com changed bug 1576
What Removed Added
Resolution --- FIXED
Status UNCONFIRMED RESOLVED

Comment # 3 on bug 1576 from tingtingx.liao@intel.com
This issue has been fixed on highe=
r versions of gcc(14.2+)
And by the description of the following comment, will close this ticket.

Comments from developers:
The warning message is due to the fact that the assembly code generated by =
GCC
may skip the initialization of the event variable at the O1 optimization, b=
ut
was replaced by other instructions in O2 and O3, therefore it compiles fine.

This issue does not need to be fixed considering the following reasons.
1. There is a rte_memcpy() at line number 699 which is copying response
information as event into this. So, that will initialize all the event fiel=
ds.
We don't require to initialize events at the declaration.
2. O1 is an unusual, the default optimization level of DPDK is O3, the
functions in the report are inline functions, they will be integrated into
their callers at this level, skipping the initialization is not possible.
3. These warning messages appear only in the O1 optimization and not in O2 =
and
O3.
4. The compiler in JIRA is GCC 11.4.1, and there are no warning messages wh=
en
using Clang 19.1.3 and higher versions of GCC 14.2.1.
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --17376180741.D3B3D.2346340--