rs6000.c (print_operand, 'y' case): Fix code that generated a warning and prevented...
authorMichael Meissner <meissner@linux.vnet.ibm.com>
Thu, 21 Aug 2014 18:13:52 +0000 (18:13 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Thu, 21 Aug 2014 18:13:52 +0000 (18:13 +0000)
2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>

* config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
generated a warning and prevented bootstrapping the compiler.

From-SVN: r214280

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 4f84019..c163b81 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
+
+       * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
+       generated a warning and prevented bootstrapping the compiler.
+
 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
 
        * rtl.h (delete_related_insns): Strengthen return type from rtx to
index f27759b..9ed2d5b 100644 (file)
@@ -18601,7 +18601,7 @@ print_operand (FILE *file, rtx x, int code)
          fprintf (file, "0,%s", reg_names[REGNO (tmp)]);
        else
          {
-           if (!GET_CODE (tmp) == PLUS
+           if (GET_CODE (tmp) != PLUS
                || !REG_P (XEXP (tmp, 0))
                || !REG_P (XEXP (tmp, 1)))
              {