RFA (m32r): Fix PR46427

Nick Clifton nickc@redhat.com
Mon Nov 15 12:02:00 GMT 2010


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



More information about the Gcc-patches mailing list