diff mbox

, Fix error in powerpc bootstrap

Message ID 20140821181634.GA5942@ibm-tiger.the-meissners.org
State New
Headers show

Commit Message

Michael Meissner Aug. 21, 2014, 6:16 p.m. UTC
There was some code in the rs6000.c that new warnings prevented the powerpc
compiler from bootstraping.  I fixed it under the 'obvious' rule, after doing a
bootstrap with the change:

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.
diff mbox

Patch

Index: gcc/config/rs6000/rs6000.c
===================================================================
--- gcc/config/rs6000/rs6000.c	(revision 214277)
+++ gcc/config/rs6000/rs6000.c	(working copy)
@@ -18601,7 +18601,7 @@  print_operand (FILE *file, rtx x, int co
 	  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)))
 	      {