This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH], Fix error in powerpc bootstrap
- From: Michael Meissner <meissner at linux dot vnet dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org, dje dot gcc at gmail dot com
- Date: Thu, 21 Aug 2014 14:16:34 -0400
- Subject: [PATCH], Fix error in powerpc bootstrap
- Authentication-results: sourceware.org; auth=none
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.
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)))
{
--
Michael Meissner, IBM
IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA
email: meissner@linux.vnet.ibm.com, phone: +1 (978) 899-4797