From: Michael Meissner Date: Thu, 21 Aug 2014 18:13:52 +0000 (+0000) Subject: rs6000.c (print_operand, 'y' case): Fix code that generated a warning and prevented... X-Git-Tag: releases/gcc-5.1.0~5291 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e502930574c9980ae53fd204090c9e39b0265bd;p=thirdparty%2Fgcc.git rs6000.c (print_operand, 'y' case): Fix code that generated a warning and prevented bootstrapping the compiler. 2014-08-21 Michael Meissner * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that generated a warning and prevented bootstrapping the compiler. From-SVN: r214280 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f840199a817..c163b81d81e4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-08-21 Michael Meissner + + * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that + generated a warning and prevented bootstrapping the compiler. + 2014-08-21 David Malcolm * rtl.h (delete_related_insns): Strengthen return type from rtx to diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index f27759ba0c23..9ed2d5b95a0e 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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))) {