summaryrefslogtreecommitdiff
path: root/gcc/config/ns32k/ns32k.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-08-08 23:56:06 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-08-08 23:56:06 +0000
commit44be709f541770b138668349125065edbb412d08 (patch)
treed0911b7b5dcd6838b58da1e9aa452e6c6fa6419c /gcc/config/ns32k/ns32k.c
parente0acb5526d01093ee2607f65b864062c9c2b131b (diff)
downloadgcc-44be709f541770b138668349125065edbb412d08.tar.gz
(print_operand_address): A patch for 2.5.8 ended up at the wrong
place. Moved. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7881 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/ns32k/ns32k.c')
-rw-r--r--gcc/config/ns32k/ns32k.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/gcc/config/ns32k/ns32k.c b/gcc/config/ns32k/ns32k.c
index 56a5834ac28..14f21afa60f 100644
--- a/gcc/config/ns32k/ns32k.c
+++ b/gcc/config/ns32k/ns32k.c
@@ -767,6 +767,25 @@ print_operand_address (file, addr)
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
{
/* Abs. addresses don't need a base (I think). */
@@ -786,26 +805,6 @@ print_operand_address (file, addr)
}
}
#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)
{