]> gcc.gnu.org Git - gcc.git/commitdiff
pa.c (print_operand): Compute 'base' only inside the code paths that use it.
authorJason Eckhardt <jle@cygnus.com>
Mon, 3 Apr 2000 06:51:45 +0000 (06:51 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 3 Apr 2000 06:51:45 +0000 (00:51 -0600)
        * pa.c (print_operand): Compute 'base' only inside the code paths
        that use it.

From-SVN: r32875

gcc/ChangeLog
gcc/config/pa/pa.c

index 122cf05eabcf4a9f915a95d19e55e58326a00094..0d06baefc742e8400b5055185648fb5f9bdd3c68 100644 (file)
@@ -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
index 4fc8a0ce43b643cc6c96d7fab8e5a2413f17b115..f47ce37ba72e160c9d20ac2495f4e3359bf816ed 100644 (file)
@@ -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:
This page took 0.115208 seconds and 5 git commands to generate.