Commit 6ce47c07 by Richard Kenner

(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
parent 879cad45
...@@ -767,24 +767,10 @@ print_operand_address (file, addr) ...@@ -767,24 +767,10 @@ print_operand_address (file, addr)
if (base) if (base)
fprintf (file, "(%s)", reg_names[REGNO (base)]); fprintf (file, "(%s)", reg_names[REGNO (base)]);
#ifdef BASE_REG_NEEDED #ifdef BASE_REG_NEEDED
else else if (TARGET_SB)
{
/* Abs. addresses don't need a base (I think). */
if (GET_CODE (offset) != CONST_INT
#ifndef PC_RELATIVE
&& GET_CODE (offset) != LABEL_REF
&& GET_CODE (offset) != SYMBOL_REF
&& GET_CODE (offset) != CONST
&& GET_CODE (offset) != PLUS
#endif
)
{
if (TARGET_SB)
fprintf (file, "(sb)"); fprintf (file, "(sb)");
else else
abort (); abort ();
}
}
#endif #endif
fprintf (file, ")"); fprintf (file, ")");
break; break;
...@@ -799,12 +785,25 @@ print_operand_address (file, addr) ...@@ -799,12 +785,25 @@ print_operand_address (file, addr)
|| GET_CODE (offset) == PLUS) || GET_CODE (offset) == PLUS)
fprintf (file, "(pc)"); fprintf (file, "(pc)");
#endif #endif
#ifdef BASE_REG_NEEDED /* this is defined if the assembler always #ifdef BASE_REG_NEEDED
needs a base register */ else
else if (TARGET_SB) {
/* Abs. addresses don't need a base (I think). */
if (GET_CODE (offset) != CONST_INT
#ifndef PC_RELATIVE
&& GET_CODE (offset) != LABEL_REF
&& GET_CODE (offset) != SYMBOL_REF
&& GET_CODE (offset) != CONST
&& GET_CODE (offset) != PLUS
#endif
)
{
if (TARGET_SB)
fprintf (file, "(sb)"); fprintf (file, "(sb)");
else else
abort (); abort ();
}
}
#endif #endif
/* now print index if we have one */ /* now print index if we have one */
if (indexexp) if (indexexp)
......
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