From: David Christensen <drc@linux.vnet.ibm.com> To: dev@dpdk.org, beilei.xing@intel.com Cc: stable@dpdk.org, David Christensen <drc@linux.vnet.ibm.com> Subject: [dpdk-stable] [PATCH] net/i40e: fix gcc 11 build warning on POWER architecture Date: Thu, 14 Oct 2021 12:05:00 -0700 Message-ID: <20211014190500.2657413-1-drc@linux.vnet.ibm.com> (raw) Building DPDK with a gcc 11 based compiler such as the IBM Advanced Toolchain 15 (1) generates a stringop-overflow warning when using -O3 optimization (DPDK default for production releases): writing 1 byte into a region of size 0 [-Wstringop-overflow=] The issue has been reported to the gcc project (2) but can be resolved by preventing the compiler from unrolling the loop as part of the -O3 optimization. (1) https://www.ibm.com/support/pages/advance-toolchain-linux-power (2) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102316 Bugzilla ID: 743 Signed-off-by: David Christensen <drc@linux.vnet.ibm.com> --- drivers/net/i40e/i40e_flow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index e41a84f1d7..17ab7ad9b9 100644 --- a/drivers/net/i40e/i40e_flow.c +++ b/drivers/net/i40e/i40e_flow.c @@ -3047,6 +3047,10 @@ i40e_flow_parse_fdir_pattern(struct rte_eth_dev *dev, return -rte_errno; } +#if defined(RTE_ARCH_PPC_64) && defined(RTE_TOOLCHAIN_GCC) && \ +(GCC_VERSION >= 110000) +#pragma GCC unroll 1 +#endif for (i = 0; i < raw_spec->length; i++) { j = i + next_dst_off; filter->input.flow_ext.flexbytes[j] = -- 2.27.0
next reply other threads:[~2021-10-14 19:05 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-14 19:05 David Christensen [this message] 2021-11-05 0:50 ` [dpdk-stable] [dpdk-dev] " Zhang, Qi Z 2021-11-09 22:46 ` David Christensen
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211014190500.2657413-1-drc@linux.vnet.ibm.com \ --to=drc@linux.vnet.ibm.com \ --cc=beilei.xing@intel.com \ --cc=dev@dpdk.org \ --cc=stable@dpdk.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
patches for DPDK stable branches This inbox may be cloned and mirrored by anyone: git clone --mirror http://inbox.dpdk.org/stable/0 stable/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 stable stable/ http://inbox.dpdk.org/stable \ stable@dpdk.org public-inbox-index stable Example config snippet for mirrors. Newsgroup available over NNTP: nntp://inbox.dpdk.org/inbox.dpdk.stable AGPL code for this site: git clone https://public-inbox.org/public-inbox.git