* arc.c (output_shift): Use stdio instead of asm_fprintf.
* arm.c (thumb_output_function_prologue): Likewise.
* avr.c (print_operand): Likewise.
* c4x.c (c4x_print_operand): Likewise.
* c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
* cris.c (cris_target_asm_function_prologue,
cris_asm_output_mi_thunk): Likewise.
* h8300.c (print_operand): Likewise.
* h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
* ip2k.c (print_operand): Likewise. Fix format specifier.
* m68hc11.c (asm_print_register, print_operand,
print_operand_address): Use stdio instead of asm_fprintf.
(print_operand_address): Fix format specifier.
* m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
asm_fprintf.
* m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
* m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
* m68k.c (m68k_output_function_prologue,
m68k_output_function_epilogue, print_operand): Likewise.
* mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
Likewise. Fix format specifier.
* mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
* mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
* v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
From-SVN: r56472
+2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * arc.c (output_shift): Use stdio instead of asm_fprintf.
+ * arm.c (thumb_output_function_prologue): Likewise.
+ * avr.c (print_operand): Likewise.
+ * c4x.c (c4x_print_operand): Likewise.
+ * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
+ ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
+ * cris.c (cris_target_asm_function_prologue,
+ cris_asm_output_mi_thunk): Likewise.
+ * h8300.c (print_operand): Likewise.
+ * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
+ * ip2k.c (print_operand): Likewise. Fix format specifier.
+ * m68hc11.c (asm_print_register, print_operand,
+ print_operand_address): Use stdio instead of asm_fprintf.
+ (print_operand_address): Fix format specifier.
+ * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
+ ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
+ asm_fprintf.
+ * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
+ * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
+ * m68k.c (m68k_output_function_prologue,
+ m68k_output_function_epilogue, print_operand): Likewise.
+ * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
+ Likewise. Fix format specifier.
+ * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
+ * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
+ * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
+
2002-08-15 Eric Christopher <echristo@redhat.com>
Jeff Knaggs <jknaggs@redhat.com>
output_asm_insn ("sr %4,[lp_end]", operands);
output_asm_insn ("nop\n\tnop", operands);
if (flag_pic)
- asm_fprintf (asm_out_file, "\t%s single insn loop\n",
- ASM_COMMENT_START);
+ fprintf (asm_out_file, "\t%s single insn loop\n",
+ ASM_COMMENT_START);
else
- asm_fprintf (asm_out_file, "1:\t%s single insn loop\n",
- ASM_COMMENT_START);
+ fprintf (asm_out_file, "1:\t%s single insn loop\n",
+ ASM_COMMENT_START);
output_asm_insn (shift_one, operands);
}
else
{
- asm_fprintf (asm_out_file, "1:\t%s begin shift loop\n",
- ASM_COMMENT_START);
+ fprintf (asm_out_file, "1:\t%s begin shift loop\n",
+ ASM_COMMENT_START);
output_asm_insn ("sub.f %4,%4,1", operands);
output_asm_insn ("nop", operands);
output_asm_insn ("bn.nd 2f", operands);
output_asm_insn (shift_one, operands);
output_asm_insn ("b.nd 1b", operands);
- asm_fprintf (asm_out_file, "2:\t%s end shift loop\n",
- ASM_COMMENT_START);
+ fprintf (asm_out_file, "2:\t%s end shift loop\n",
+ ASM_COMMENT_START);
}
}
}
#define STUB_NAME ".real_start_of"
- asm_fprintf (f, "\t.code\t16\n");
+ fprintf (f, "\t.code\t16\n");
#ifdef ARM_PE
if (arm_dllexport_name_p (name))
name = arm_strip_name_encoding (name);
#endif
asm_fprintf (f, "\t.globl %s%U%s\n", STUB_NAME, name);
- asm_fprintf (f, "\t.thumb_func\n");
+ fprintf (f, "\t.thumb_func\n");
asm_fprintf (f, "%s%U%s:\n", STUB_NAME, name);
}
{
int num_pushes;
- asm_fprintf (f, "\tpush\t{");
+ fprintf (f, "\tpush\t{");
num_pushes = ARM_NUM_INTS (current_function_pretend_args_size);
asm_fprintf (f, "%r%s", regno,
regno == LAST_ARG_REGNUM ? "" : ", ");
- asm_fprintf (f, "}\n");
+ fprintf (f, "}\n");
}
else
asm_fprintf (f, "\tsub\t%r, %r, #%d\n",
fatal_insn ("internal compiler error. Unknown mode:", x);
REAL_VALUE_FROM_CONST_DOUBLE (rv, x);
REAL_VALUE_TO_TARGET_SINGLE (rv, val);
- asm_fprintf (file, "0x%lx", val);
+ fprintf (file, "0x%lx", val);
}
else if (code == 'j')
- asm_fprintf (file, cond_string (GET_CODE (x)));
+ fputs (cond_string (GET_CODE (x)), file);
else if (code == 'k')
- asm_fprintf (file, cond_string (reverse_condition (GET_CODE (x))));
+ fputs (cond_string (reverse_condition (GET_CODE (x))), file);
else
print_operand_address (file, x);
}
{
case '#': /* Delayed. */
if (final_sequence)
- asm_fprintf (file, "d");
+ fprintf (file, "d");
return;
}
{
case 'A': /* Direct address. */
if (code == CONST_INT || code == SYMBOL_REF || code == CONST)
- asm_fprintf (file, "@");
+ fprintf (file, "@");
break;
case 'H': /* Sethi. */
op1 = XEXP (XEXP (op, 0), 1);
if (GET_CODE(op1) == CONST_INT || GET_CODE(op1) == SYMBOL_REF)
{
- asm_fprintf (file, "\t%s\t@", TARGET_C3X ? "ldp" : "ldpk");
+ fprintf (file, "\t%s\t@", TARGET_C3X ? "ldp" : "ldpk");
output_address (XEXP (adjust_address (op, VOIDmode, 1), 0));
- asm_fprintf (file, "\n");
+ fprintf (file, "\n");
}
}
return;
&& (GET_CODE (XEXP (op, 0)) == CONST
|| GET_CODE (XEXP (op, 0)) == SYMBOL_REF))
{
- asm_fprintf (file, "%s\t@", TARGET_C3X ? "ldp" : "ldpk");
+ fprintf (file, "%s\t@", TARGET_C3X ? "ldp" : "ldpk");
output_address (XEXP (op, 0));
- asm_fprintf (file, "\n\t");
+ fprintf (file, "\n\t");
}
return;
case 'U': /* Call/callu. */
if (code != SYMBOL_REF)
- asm_fprintf (file, "u");
+ fprintf (file, "u");
return;
default:
break;
case NE:
- asm_fprintf (file, "ne");
+ fprintf (file, "ne");
break;
case EQ:
- asm_fprintf (file, "eq");
+ fprintf (file, "eq");
break;
case GE:
- asm_fprintf (file, "ge");
+ fprintf (file, "ge");
break;
case GT:
- asm_fprintf (file, "gt");
+ fprintf (file, "gt");
break;
case LE:
- asm_fprintf (file, "le");
+ fprintf (file, "le");
break;
case LT:
- asm_fprintf (file, "lt");
+ fprintf (file, "lt");
break;
case GEU:
- asm_fprintf (file, "hs");
+ fprintf (file, "hs");
break;
case GTU:
- asm_fprintf (file, "hi");
+ fprintf (file, "hi");
break;
case LEU:
- asm_fprintf (file, "ls");
+ fprintf (file, "ls");
break;
case LTU:
- asm_fprintf (file, "lo");
+ fprintf (file, "lo");
break;
case SYMBOL_REF:
PREFIX is the class of label and NUM is the number within the class. */
#define ASM_OUTPUT_INTERNAL_LABEL(FILE, PREFIX, NUM) \
-asm_fprintf (FILE, "%s%d:\n", PREFIX, NUM)
+ fprintf (FILE, "%s%d:\n", PREFIX, NUM)
/* This is how to store into the string LABEL
the symbol_ref name of an internal numbered label where
{ \
if (TARGET_C3X) \
{ \
- asm_fprintf (FILE, "\tldiu\t0,ar1\n"); \
- asm_fprintf (FILE, "\tlsh\t16,ar1\n"); \
- asm_fprintf (FILE, "\tor\t0,ar1\n"); \
- asm_fprintf (FILE, "\tldiu\t0,ar0\n"); \
- asm_fprintf (FILE, "\tbud\tar1\n"); \
- asm_fprintf (FILE, "\tlsh\t16,ar0\n"); \
- asm_fprintf (FILE, "\tor\t0,ar0\n"); \
- asm_fprintf (FILE, "\tor\t1000h,st\n"); \
+ fprintf (FILE, "\tldiu\t0,ar1\n"); \
+ fprintf (FILE, "\tlsh\t16,ar1\n"); \
+ fprintf (FILE, "\tor\t0,ar1\n"); \
+ fprintf (FILE, "\tldiu\t0,ar0\n"); \
+ fprintf (FILE, "\tbud\tar1\n"); \
+ fprintf (FILE, "\tlsh\t16,ar0\n"); \
+ fprintf (FILE, "\tor\t0,ar0\n"); \
+ fprintf (FILE, "\tor\t1000h,st\n"); \
} \
else \
{ \
- asm_fprintf (FILE, "\tlaj\t$+4\n"); \
- asm_fprintf (FILE, "\taddi3\t4,r11,ar0\n"); \
- asm_fprintf (FILE, "\tlda\t*ar0,ar1\n"); \
- asm_fprintf (FILE, "\tlda\t*+ar0(1),ar0\n"); \
- asm_fprintf (FILE, "\tbud\tar1\n"); \
- asm_fprintf (FILE, "\tnop\n"); \
- asm_fprintf (FILE, "\tnop\n"); \
- asm_fprintf (FILE, "\tor\t1000h,st\n"); \
- asm_fprintf (FILE, "\t.word\t0\n"); \
- asm_fprintf (FILE, "\t.word\t0\n"); \
+ fprintf (FILE, "\tlaj\t$+4\n"); \
+ fprintf (FILE, "\taddi3\t4,r11,ar0\n"); \
+ fprintf (FILE, "\tlda\t*ar0,ar1\n"); \
+ fprintf (FILE, "\tlda\t*+ar0(1),ar0\n"); \
+ fprintf (FILE, "\tbud\tar1\n"); \
+ fprintf (FILE, "\tnop\n"); \
+ fprintf (FILE, "\tnop\n"); \
+ fprintf (FILE, "\tor\t1000h,st\n"); \
+ fprintf (FILE, "\t.word\t0\n"); \
+ fprintf (FILE, "\t.word\t0\n"); \
} \
}
#define BSS_SECTION_ASM_OP "\t.bss"
#define ASM_OUTPUT_REG_PUSH(FILE, REGNO) \
- asm_fprintf (FILE, "\tpush\t%s\n", reg_names[REGNO])
+ fprintf (FILE, "\tpush\t%s\n", reg_names[REGNO])
/* This is how to output an insn to pop a register from the stack.
It need not be very fast code. */
#define ASM_OUTPUT_REG_POP(FILE, REGNO) \
- asm_fprintf (FILE, "\tpop\t%s\n", reg_names[REGNO])
+ fprintf (FILE, "\tpop\t%s\n", reg_names[REGNO])
/* Value is 1 if truncating an integer of INPREC bits to OUTPREC bits
is done just by pretending it is already truncated. */
/* Set up the PIC register. */
if (current_function_uses_pic_offset_table)
- asm_fprintf (file, "\tmove.d $pc,$%s\n\tsub.d .:GOTOFF,$%s\n",
- reg_names[PIC_OFFSET_TABLE_REGNUM],
- reg_names[PIC_OFFSET_TABLE_REGNUM]);
+ fprintf (file, "\tmove.d $pc,$%s\n\tsub.d .:GOTOFF,$%s\n",
+ reg_names[PIC_OFFSET_TABLE_REGNUM],
+ reg_names[PIC_OFFSET_TABLE_REGNUM]);
if (TARGET_PDEBUG)
fprintf (file,
tree funcdecl;
{
if (delta > 0)
- asm_fprintf (stream, "\tadd%s %d,$%s\n",
- ADDITIVE_SIZE_MODIFIER (delta), delta,
- reg_names[CRIS_FIRST_ARG_REG]);
+ fprintf (stream, "\tadd%s %d,$%s\n",
+ ADDITIVE_SIZE_MODIFIER (delta), delta,
+ reg_names[CRIS_FIRST_ARG_REG]);
else if (delta < 0)
- asm_fprintf (stream, "\tsub%s %d,$%s\n",
- ADDITIVE_SIZE_MODIFIER (-delta), -delta,
- reg_names[CRIS_FIRST_ARG_REG]);
+ fprintf (stream, "\tsub%s %d,$%s\n",
+ ADDITIVE_SIZE_MODIFIER (-delta), -delta,
+ reg_names[CRIS_FIRST_ARG_REG]);
if (flag_pic)
{
}
break;
case 'j':
- asm_fprintf (file, cond_string (GET_CODE (x)));
+ fputs (cond_string (GET_CODE (x)), file);
break;
case 'k':
- asm_fprintf (file, cond_string (reverse_condition (GET_CODE (x))));
+ fputs (cond_string (reverse_condition (GET_CODE (x))), file);
break;
case 's':
if (GET_CODE (x) == CONST_INT)
/* This is how to output an element of a case-vector that is absolute. */
#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
- asm_fprintf (FILE, "%s.L%d\n", ASM_WORD_OP, VALUE)
+ fprintf (FILE, "%s.L%d\n", ASM_WORD_OP, VALUE)
/* This is how to output an element of a case-vector that is relative. */
REAL_VALUE_FROM_CONST_DOUBLE (rv, x);
REAL_VALUE_TO_TARGET_SINGLE (rv, value);
- asm_fprintf (file, "0x%x", value);
+ fprintf (file, "0x%lx", value);
}
break;
if (TARGET_NO_DIRECT_MODE && name[0] == '*')
name++;
- asm_fprintf (file, "%s", name);
+ fprintf (file, "%s", name);
}
/* A C compound statement to output to stdio stream STREAM the
else if (letter == 'T')
{
asm_print_register (file, SOFT_TMP_REGNUM);
- asm_fprintf (file, "+1");
+ fprintf (file, "+1");
return;
}
else if (letter == '#')
if (letter == 'b' && S_REG_P (op))
{
asm_print_register (file, REGNO (op));
- asm_fprintf (file, "+1");
+ fprintf (file, "+1");
}
else
{
asm_fprintf (file, "%0I%%hi(");
output_addr_const (file, op);
- asm_fprintf (file, ")");
+ fprintf (file, ")");
return;
}
case PRE_DEC:
if (TARGET_M6812)
{
- asm_fprintf (file, "%u,-", GET_MODE_SIZE (GET_MODE (op)));
+ fprintf (file, "%u,-", GET_MODE_SIZE (GET_MODE (op)));
asm_print_register (file, REGNO (XEXP (base, 0)));
}
else
case POST_DEC:
if (TARGET_M6812)
{
- asm_fprintf (file, "%u,", GET_MODE_SIZE (GET_MODE (op)));
+ fprintf (file, "%u,", GET_MODE_SIZE (GET_MODE (op)));
asm_print_register (file, REGNO (XEXP (base, 0)));
- asm_fprintf (file, "-");
+ fprintf (file, "-");
}
else
abort ();
case POST_INC:
if (TARGET_M6812)
{
- asm_fprintf (file, "%u,", GET_MODE_SIZE (GET_MODE (op)));
+ fprintf (file, "%u,", GET_MODE_SIZE (GET_MODE (op)));
asm_print_register (file, REGNO (XEXP (base, 0)));
- asm_fprintf (file, "+");
+ fprintf (file, "+");
}
else
abort ();
case PRE_INC:
if (TARGET_M6812)
{
- asm_fprintf (file, "%u,+", GET_MODE_SIZE (GET_MODE (op)));
+ fprintf (file, "%u,+", GET_MODE_SIZE (GET_MODE (op)));
asm_print_register (file, REGNO (XEXP (base, 0)));
}
else
need_parenthesize = must_parenthesize (op);
if (need_parenthesize)
- asm_fprintf (file, "(");
+ fprintf (file, "(");
output_addr_const (file, op);
if (need_parenthesize)
- asm_fprintf (file, ")");
+ fprintf (file, ")");
}
}
if (!REG_P (addr) || !REG_OK_FOR_BASE_STRICT_P (addr))
abort ();
- asm_fprintf (file, "0,");
+ fprintf (file, "0,");
asm_print_register (file, REGNO (addr));
break;
case PRE_DEC:
if (TARGET_M6812)
{
- asm_fprintf (file, "%u,-", GET_MODE_SIZE (GET_MODE (addr)));
+ fprintf (file, "%u,-", GET_MODE_SIZE (GET_MODE (addr)));
asm_print_register (file, REGNO (XEXP (base, 0)));
}
else
case POST_DEC:
if (TARGET_M6812)
{
- asm_fprintf (file, "%u,", GET_MODE_SIZE (GET_MODE (addr)));
+ fprintf (file, "%u,", GET_MODE_SIZE (GET_MODE (addr)));
asm_print_register (file, REGNO (XEXP (base, 0)));
- asm_fprintf (file, "-");
+ fprintf (file, "-");
}
else
abort ();
case POST_INC:
if (TARGET_M6812)
{
- asm_fprintf (file, "%u,", GET_MODE_SIZE (GET_MODE (addr)));
+ fprintf (file, "%u,", GET_MODE_SIZE (GET_MODE (addr)));
asm_print_register (file, REGNO (XEXP (base, 0)));
- asm_fprintf (file, "+");
+ fprintf (file, "+");
}
else
abort ();
case PRE_INC:
if (TARGET_M6812)
{
- asm_fprintf (file, "%u,+", GET_MODE_SIZE (GET_MODE (addr)));
+ fprintf (file, "%u,+", GET_MODE_SIZE (GET_MODE (addr)));
asm_print_register (file, REGNO (XEXP (base, 0)));
}
else
default:
need_parenthesis = must_parenthesize (base);
if (need_parenthesis)
- asm_fprintf (file, "(");
+ fprintf (file, "(");
output_addr_const (file, base);
if (need_parenthesis)
- asm_fprintf (file, ")");
+ fprintf (file, ")");
break;
}
break;
need_parenthesis = must_parenthesize (addr);
if (need_parenthesis)
- asm_fprintf (file, "(");
+ fprintf (file, "(");
output_addr_const (file, base);
- asm_fprintf (file, "+");
+ fprintf (file, "+");
output_addr_const (file, offset);
if (need_parenthesis)
- asm_fprintf (file, ")");
+ fprintf (file, ")");
}
else if (REG_P (base) && REG_OK_FOR_BASE_STRICT_P (base))
{
if (TARGET_M6812)
{
asm_print_register (file, REGNO (offset));
- asm_fprintf (file, ",");
+ fprintf (file, ",");
asm_print_register (file, REGNO (base));
}
else
{
need_parenthesis = must_parenthesize (offset);
if (need_parenthesis)
- asm_fprintf (file, "(");
+ fprintf (file, "(");
output_addr_const (file, offset);
if (need_parenthesis)
- asm_fprintf (file, ")");
- asm_fprintf (file, ",");
+ fprintf (file, ")");
+ fprintf (file, ",");
asm_print_register (file, REGNO (base));
}
}
if (GET_CODE (addr) == CONST_INT
&& INTVAL (addr) < 0x8000 && INTVAL (addr) >= -0x8000)
{
- asm_fprintf (file, "%d", INTVAL (addr));
+ fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (addr));
}
else
{
need_parenthesis = must_parenthesize (addr);
if (need_parenthesis)
- asm_fprintf (file, "(");
+ fprintf (file, "(");
output_addr_const (file, addr);
if (need_parenthesis)
- asm_fprintf (file, ")");
+ fprintf (file, ")");
}
break;
}
/* Output assembler code to FILE to increment profiler label # LABELNO
for profiling a function entry. */
#define FUNCTION_PROFILER(FILE, LABELNO) \
- asm_fprintf (FILE, "\tldy\t.LP%d\n\tjsr mcount\n", (LABELNO))
+ fprintf (FILE, "\tldy\t.LP%d\n\tjsr mcount\n", (LABELNO))
/* Length in units of the trampoline for entering a nested function. */
#define TRAMPOLINE_SIZE (TARGET_M6811 ? 11 : 9)
/* This is how to output an element of a case-vector that is relative. */
#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
- asm_fprintf (FILE, "\t%s\tL%d-L%d\n", integer_asm_op (2, TRUE), VALUE, REL)
+ fprintf (FILE, "\t%s\tL%d-L%d\n", integer_asm_op (2, TRUE), VALUE, REL)
/* This is how to output an element of a case-vector that is absolute. */
#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
- asm_fprintf (FILE, "\t%s\t.L%d\n", integer_asm_op (2, TRUE), VALUE)
+ fprintf (FILE, "\t%s\t.L%d\n", integer_asm_op (2, TRUE), VALUE)
/* This is how to output an assembler line that says to advance the
location counter to a multiple of 2**LOG bytes. */
#define ASM_OUTPUT_ALIGN(FILE,LOG) \
do { \
if ((LOG) > 1) \
- asm_fprintf ((FILE), "%s\n", ALIGN_ASM_OP); \
+ fprintf ((FILE), "%s\n", ALIGN_ASM_OP); \
} while (0)
\f
#undef ASM_OUTPUT_INTERNAL_LABEL
#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
if (flag_pic && !strcmp(PREFIX,"LC")) \
- asm_fprintf (FILE, "%s%%%d:\n", PREFIX, NUM); \
+ fprintf (FILE, "%s%%%d:\n", PREFIX, NUM); \
else \
asm_fprintf (FILE, "%0L%s%d:\n", PREFIX, NUM)
#undef ASM_OUTPUT_INTERNAL_LABEL
#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
if (flag_pic && !strcmp(PREFIX,"LC")) \
- asm_fprintf (FILE, "%s%%%d:\n", PREFIX, NUM); \
+ fprintf (FILE, "%s%%%d:\n", PREFIX, NUM); \
else \
asm_fprintf (FILE, "%0L%s%d:\n", PREFIX, NUM)
{
/* on the 68040, pea + move is faster than link.w 0 */
#ifdef MOTOROLA
- asm_fprintf (stream, "\tpea (%s)\n\tmove.l %s,%s\n",
- reg_names[FRAME_POINTER_REGNUM], reg_names[STACK_POINTER_REGNUM],
- reg_names[FRAME_POINTER_REGNUM]);
+ fprintf (stream, "\tpea (%s)\n\tmove.l %s,%s\n",
+ reg_names[FRAME_POINTER_REGNUM],
+ reg_names[STACK_POINTER_REGNUM],
+ reg_names[FRAME_POINTER_REGNUM]);
#else
- asm_fprintf (stream, "\tpea %s@\n\tmovel %s,%s\n",
- reg_names[FRAME_POINTER_REGNUM], reg_names[STACK_POINTER_REGNUM],
- reg_names[FRAME_POINTER_REGNUM]);
+ fprintf (stream, "\tpea %s@\n\tmovel %s,%s\n",
+ reg_names[FRAME_POINTER_REGNUM],
+ reg_names[STACK_POINTER_REGNUM],
+ reg_names[FRAME_POINTER_REGNUM]);
#endif
}
else if (fsize < 0x8000)
{
/* Output just a no-op so that debuggers don't get confused
about which function the pc is in at this address. */
- asm_fprintf (stream, "\tnop\n");
+ fprintf (stream, "\tnop\n");
return;
}
reg_names[FRAME_POINTER_REGNUM],
reg_names[i]);
#else
- asm_fprintf (stream, "\tmovel %s@(-%d),%s\n",
- reg_names[FRAME_POINTER_REGNUM],
- offset + fsize, reg_names[i]);
+ fprintf (stream, "\tmovel %s@(-%d),%s\n",
+ reg_names[FRAME_POINTER_REGNUM],
+ offset + fsize, reg_names[i]);
#endif
}
offset = offset - 4;
else
{
#ifdef MOTOROLA
- asm_fprintf (stream, "\tfpmovd -%d(%s), %s\n",
- fpoffset + fsize,
- reg_names[FRAME_POINTER_REGNUM],
- reg_names[regno]);
+ fprintf (stream, "\tfpmovd -%d(%s), %s\n",
+ fpoffset + fsize,
+ reg_names[FRAME_POINTER_REGNUM],
+ reg_names[regno]);
#else
- asm_fprintf (stream, "\tfpmoved %s@(-%d), %s\n",
- reg_names[FRAME_POINTER_REGNUM],
- fpoffset + fsize, reg_names[regno]);
+ fprintf (stream, "\tfpmoved %s@(-%d), %s\n",
+ reg_names[FRAME_POINTER_REGNUM],
+ fpoffset + fsize, reg_names[regno]);
#endif
}
fpoffset -= 8;
if (letter == '.')
{
#if defined (MOTOROLA) && !defined (CRDS)
- asm_fprintf (file, ".");
+ fprintf (file, ".");
#endif
}
else if (letter == '#')
const char *regname = reg_names[MMIX_FIRST_INCOMING_ARG_REGNUM];
if (delta >= 0 && delta < 65536)
- asm_fprintf (stream, "\tINCL %s,%d\n", delta, regname);
+ fprintf (stream, "\tINCL %s,%d\n", regname, delta);
else if (delta < 0 && delta >= -255)
- asm_fprintf (stream, "\tSUBU %s,%s,%d\n", regname, regname, -delta);
+ fprintf (stream, "\tSUBU %s,%s,%d\n", regname, regname, -delta);
else
{
mmix_output_register_setting (stream, 255, delta, 1);
- asm_fprintf (stream, "\tADDU %s,%s,$255\n", regname, regname);
+ fprintf (stream, "\tADDU %s,%s,$255\n", regname, regname);
}
fprintf (stream, "\tJMP ");
FILE * stream ATTRIBUTE_UNUSED;
const char * name ATTRIBUTE_UNUSED;
{
- asm_fprintf (stream, "\t.weak ");
+ fprintf (stream, "\t.weak ");
assemble_name (stream, name);
- asm_fprintf (stream, " ! mmixal-incompatible\n");
+ fprintf (stream, " ! mmixal-incompatible\n");
}
/* MAKE_DECL_ONE_ONLY. */
/* This is how to output an element of a case-vector that is absolute. */
#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
- asm_fprintf (FILE, "\t%s .L%d\n", ".long", VALUE)
+ fprintf (FILE, "\t%s .L%d\n", ".long", VALUE)
/* This is how to output an element of a case-vector that is relative. */
/* This is how to output an element of a case-vector that is absolute. */
#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
- asm_fprintf (FILE, "\t%s .L%d\n", ".long", VALUE)
+ fprintf (FILE, "\t%s .L%d\n", ".long", VALUE)
/* This is how to output an element of a case-vector that is relative. */
/* This is how to output an element of a case-vector that is absolute. */
#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
- asm_fprintf (FILE, "\t%s .L%d\n", \
- (TARGET_BIG_SWITCH ? ".long" : ".short"), VALUE)
+ fprintf (FILE, "\t%s .L%d\n", \
+ (TARGET_BIG_SWITCH ? ".long" : ".short"), VALUE)
/* This is how to output an element of a case-vector that is relative. */