]> gcc.gnu.org Git - gcc.git/commitdiff
(print_operand_address): A patch for 2.5.8 ended up at the wrong place.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 8 Aug 1994 23:56:06 +0000 (19:56 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 8 Aug 1994 23:56:06 +0000 (19:56 -0400)
(print_operand_address): A patch for 2.5.8 ended up at the wrong
place.  Moved.

From-SVN: r7881

gcc/config/ns32k/ns32k.c

index 56a5834ac28ada9bdbdee546b4d47ee5032161d7..14f21afa60fd7230e9807fbb3d78f741d100aa0b 100644 (file)
@@ -766,6 +766,25 @@ print_operand_address (file, addr)
        output_addr_const (file, offset);
        if (base)
          fprintf (file, "(%s)", reg_names[REGNO (base)]);
+#ifdef BASE_REG_NEEDED
+       else if (TARGET_SB)
+         fprintf (file, "(sb)");
+       else
+         abort ();
+#endif
+       fprintf (file, ")");
+       break;
+
+      default:
+       abort ();
+      }
+#ifdef PC_RELATIVE
+  else if (GET_CODE (offset) == LABEL_REF
+          || GET_CODE (offset) == SYMBOL_REF
+          || GET_CODE (offset) == CONST
+          || GET_CODE (offset) == PLUS)
+    fprintf (file, "(pc)");
+#endif
 #ifdef BASE_REG_NEEDED
   else 
     {
@@ -785,26 +804,6 @@ print_operand_address (file, addr)
            abort ();
         }
     }
-#endif
-       fprintf (file, ")");
-       break;
-
-      default:
-       abort ();
-      }
-#ifdef PC_RELATIVE
-  else if (GET_CODE (offset) == LABEL_REF
-          || GET_CODE (offset) == SYMBOL_REF
-          || GET_CODE (offset) == CONST
-          || GET_CODE (offset) == PLUS)
-    fprintf (file, "(pc)");
-#endif
-#ifdef BASE_REG_NEEDED         /* this is defined if the assembler always
-                                  needs a base register */
-    else if (TARGET_SB)
-      fprintf (file, "(sb)");
-    else
-      abort ();
 #endif
   /* now print index if we have one */
   if (indexexp)
This page took 0.069611 seconds and 5 git commands to generate.