Commit 478a4495 by Jason Eckhardt Committed by Jeff Law

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
parent f0fddb15
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> 2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
* stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
......
...@@ -3912,15 +3912,17 @@ print_operand (file, x, code) ...@@ -3912,15 +3912,17 @@ print_operand (file, x, code)
else if (GET_CODE (x) == MEM) else if (GET_CODE (x) == MEM)
{ {
int size = GET_MODE_SIZE (GET_MODE (x)); 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))) switch (GET_CODE (XEXP (x, 0)))
{ {
case PRE_DEC: case PRE_DEC:
case POST_DEC: case POST_DEC:
base = XEXP (XEXP (x, 0), 0);
fprintf (file, "-%d(%s)", size, reg_names [REGNO (base)]); fprintf (file, "-%d(%s)", size, reg_names [REGNO (base)]);
break; break;
case PRE_INC: case PRE_INC:
case POST_INC: case POST_INC:
base = XEXP (XEXP (x, 0), 0);
fprintf (file, "%d(%s)", size, reg_names [REGNO (base)]); fprintf (file, "%d(%s)", size, reg_names [REGNO (base)]);
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment