aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-08-08 19:56:06 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-08-08 19:56:06 -0400
commit6ce47c075f882002192a9b68c9c31ff04d2efe06 (patch)
treed0911b7b5dcd6838b58da1e9aa452e6c6fa6419c /gcc
parent879cad45f2f7f974f7169a0d37419d5737c8f8bf (diff)
downloadgcc-6ce47c075f882002192a9b68c9c31ff04d2efe06.zip
gcc-6ce47c075f882002192a9b68c9c31ff04d2efe06.tar.gz
gcc-6ce47c075f882002192a9b68c9c31ff04d2efe06.tar.bz2
(print_operand_address): A patch for 2.5.8 ended up at the wrong place.
(print_operand_address): A patch for 2.5.8 ended up at the wrong place. Moved. From-SVN: r7881
Diffstat (limited to 'gcc')
-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 56a5834..14f21af 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)
{