This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA (m32r): Fix PR46427


Hi Joern,

The first part of the patch is OK, but...

@@ -2009,6 +2009,9 @@ m32r_legitimize_pic_address (rtx orig, r
       /* Put a REG_EQUAL note on this insn, so that it can be optimized
          by loop.  */
       set_unique_reg_note (insn, REG_EQUAL, orig);
+#else
+      /* Silence set-but-not used warning.  */
+      gcc_assert (insn);
 #endif
       return reg;
     }

There is no need for this. Just delete the #if 0 ... #endif block and remove the insn local variable.

Approved with that change.

Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]