pa.c (print_operand): Compute 'base' only inside the code paths that use it.
* pa.c (print_operand): Compute 'base' only inside the code paths that use it. From-SVN: r32875
This commit is contained in:
parent
f0fddb1554
commit
478a4495af
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Apr 3 00:50:06 2000 Jason Eckhardt <jle@cygnus.com>
|
||||
|
||||
* pa.c (print_operand): Compute 'base' only inside the code paths
|
||||
that use it.
|
||||
|
||||
2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
|
||||
|
||||
* stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
|
||||
|
|
|
@ -3912,15 +3912,17 @@ print_operand (file, x, code)
|
|||
else if (GET_CODE (x) == MEM)
|
||||
{
|
||||
int size = GET_MODE_SIZE (GET_MODE (x));
|
||||
rtx base = XEXP (XEXP (x, 0), 0);
|
||||
rtx base = NULL_RTX;
|
||||
switch (GET_CODE (XEXP (x, 0)))
|
||||
{
|
||||
case PRE_DEC:
|
||||
case POST_DEC:
|
||||
base = XEXP (XEXP (x, 0), 0);
|
||||
fprintf (file, "-%d(%s)", size, reg_names [REGNO (base)]);
|
||||
break;
|
||||
case PRE_INC:
|
||||
case POST_INC:
|
||||
base = XEXP (XEXP (x, 0), 0);
|
||||
fprintf (file, "%d(%s)", size, reg_names [REGNO (base)]);
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue