]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: fix bootstrap issue with arm_noce_conversion_profitable_p patch [NFC]
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Mon, 7 Oct 2024 13:16:38 +0000 (14:16 +0100)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Mon, 7 Oct 2024 13:16:38 +0000 (14:16 +0100)
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.

gcc/config/arm/arm.cc

index 077c80df4482d168d9694795be68c2eeb8f304d9..5c11621327e15b7212b2290769cc0a922347ce2d 100644 (file)
@@ -36101,7 +36101,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)
@@ -36164,7 +36164,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)