From: DJ Delorie Date: Wed, 25 Mar 2015 05:00:15 +0000 (-0400) Subject: rl78.c (rl78_print_operand_1): Move 'p' test to correct clause. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fae00b3eee74b6bcad636a2a67bec4a48faa8f7f;p=gcc.git rl78.c (rl78_print_operand_1): Move 'p' test to correct clause. * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to correct clause. From-SVN: r221649 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 538931eb9ad..80c1e407e21 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-03-25 DJ Delorie + + * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to + correct clause. + 2015-03-24 Jan Hubicka Martin Liska diff --git a/gcc/config/rl78/rl78.c b/gcc/config/rl78/rl78.c index 0c577c4414e..cdd30e0d9c5 100644 --- a/gcc/config/rl78/rl78.c +++ b/gcc/config/rl78/rl78.c @@ -1644,14 +1644,14 @@ rl78_print_operand_1 (FILE * file, rtx op, int letter) rl78_print_operand_1 (file, XEXP (XEXP (op, 0), 1), 'u'); fprintf (file, "["); rl78_print_operand_1 (file, XEXP (XEXP (op, 0), 0), 0); - if (letter == 'p' && GET_CODE (XEXP (op, 0)) == REG) - fprintf (file, "+0"); fprintf (file, "]"); } else { fprintf (file, "["); rl78_print_operand_1 (file, XEXP (op, 0), letter); + if (letter == 'p' && GET_CODE (XEXP (op, 0)) == REG) + fprintf (file, "+0"); fprintf (file, "]"); } }