[gcc(refs/vendors/ARM/heads/arm-14.3)] arm: fix bootstrap issue with arm_noce_conversion_profitable_p patch [NFC]
Andre Simoes Dias Vieira
avieira@gcc.gnu.org
Mon Jun 23 14:50:45 GMT 2025
https://gcc.gnu.org/g:613edf1adfb77842a277fc556892e0938e6af39f
commit 613edf1adfb77842a277fc556892e0938e6af39f
Author: Andre Vieira <andre.simoesdiasvieira@arm.com>
Date: Mon Oct 7 14:16:38 2024 +0100
arm: fix bootstrap issue with arm_noce_conversion_profitable_p patch [NFC]
This obvious patch fixes two warnings introduced with the implementation of
arm_noce_conversion_profitable_p hook.
gcc/ChangeLog:
* config/arm/arm.cc (arm_noce_oncersion_profitable_p): Remove unused
argument name.
(arm_is_v81m_cond_insn): Initialize variable.
(cherry picked from commit 5fb1ab539e3315175d2e843f4ce40bde6dd7c520)
Diff:
---
gcc/config/arm/arm.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc
index cbbe67eb598a..d85dc7b8cf31 100644
--- a/gcc/config/arm/arm.cc
+++ b/gcc/config/arm/arm.cc
@@ -36185,7 +36185,7 @@ static bool
arm_is_v81m_cond_insn (rtx_insn *seq)
{
rtx_insn *curr_insn = seq;
- rtx set;
+ rtx set = NULL_RTX;
/* The pattern may start with a simple set with register operands. Skip
through any of those. */
while (curr_insn)
@@ -36248,7 +36248,7 @@ arm_is_v81m_cond_insn (rtx_insn *seq)
hook to only allow "noce" to generate the patterns that are profitable. */
bool
-arm_noce_conversion_profitable_p (rtx_insn *seq, struct noce_if_info *if_info)
+arm_noce_conversion_profitable_p (rtx_insn *seq, struct noce_if_info *)
{
if (!TARGET_COND_ARITH
|| reload_completed)
More information about the Gcc-cvs
mailing list