m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.

* m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
	* m68k.c: Likewise.
	* m68k.h: Likewise.

From-SVN: r67093
This commit is contained in:
Kaveh R. Ghazi 2003-05-22 17:54:20 +00:00 committed by Kaveh Ghazi
parent e8751f3527
commit 1f85a61235
4 changed files with 63 additions and 57 deletions

View File

@ -1,3 +1,9 @@
2003-05-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
* m68k.c: Likewise.
* m68k.h: Likewise.
2003-05-22 Zack Weinberg <zack@codesourcery.com> 2003-05-22 Zack Weinberg <zack@codesourcery.com>
PR other/2873 PR other/2873

View File

@ -2225,7 +2225,7 @@ print_operand (file, op, letter)
} }
else if (letter == '#') else if (letter == '#')
{ {
asm_fprintf (file, "%0I"); asm_fprintf (file, "%I");
} }
if (GET_CODE (op) == REG) if (GET_CODE (op) == REG)
@ -2249,9 +2249,9 @@ print_operand (file, op, letter)
if (GET_CODE (op) == SYMBOL_REF && (letter == 'b' || letter == 'h')) if (GET_CODE (op) == SYMBOL_REF && (letter == 'b' || letter == 'h'))
{ {
if (letter == 'b') if (letter == 'b')
asm_fprintf (file, "%0I%%lo("); asm_fprintf (file, "%I%%lo(");
else else
asm_fprintf (file, "%0I%%hi("); asm_fprintf (file, "%I%%hi(");
output_addr_const (file, op); output_addr_const (file, op);
fprintf (file, ")"); fprintf (file, ")");
@ -2347,7 +2347,7 @@ print_operand (file, op, letter)
int need_parenthesize = 0; int need_parenthesize = 0;
if (letter != 'i') if (letter != 'i')
asm_fprintf (file, "%0I"); asm_fprintf (file, "%I");
else else
need_parenthesize = must_parenthesize (op); need_parenthesize = must_parenthesize (op);

View File

@ -333,10 +333,10 @@ m68k_output_function_prologue (stream, size)
&& GET_CODE (stack_limit_rtx) == SYMBOL_REF) && GET_CODE (stack_limit_rtx) == SYMBOL_REF)
{ {
#if defined (MOTOROLA) #if defined (MOTOROLA)
asm_fprintf (stream, "\tcmp.l %0I%s+%wd,%Rsp\n\ttrapcs\n", asm_fprintf (stream, "\tcmp.l %I%s+%wd,%Rsp\n\ttrapcs\n",
XSTR (stack_limit_rtx, 0), fsize + 4); XSTR (stack_limit_rtx, 0), fsize + 4);
#else #else
asm_fprintf (stream, "\tcmpl %0I%s+%wd,%Rsp\n\ttrapcs\n", asm_fprintf (stream, "\tcmpl %I%s+%wd,%Rsp\n\ttrapcs\n",
XSTR (stack_limit_rtx, 0), fsize + 4); XSTR (stack_limit_rtx, 0), fsize + 4);
#endif #endif
} }
@ -361,20 +361,20 @@ m68k_output_function_prologue (stream, size)
else if (fsize < 0x8000) else if (fsize < 0x8000)
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tlink.w %s,%0I%wd\n", asm_fprintf (stream, "\tlink.w %s,%I%wd\n",
reg_names[FRAME_POINTER_REGNUM], -fsize); reg_names[FRAME_POINTER_REGNUM], -fsize);
#else #else
asm_fprintf (stream, "\tlink %s,%0I%wd\n", asm_fprintf (stream, "\tlink %s,%I%wd\n",
reg_names[FRAME_POINTER_REGNUM], -fsize); reg_names[FRAME_POINTER_REGNUM], -fsize);
#endif #endif
} }
else if (TARGET_68020) else if (TARGET_68020)
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tlink.l %s,%0I%wd\n", asm_fprintf (stream, "\tlink.l %s,%I%wd\n",
reg_names[FRAME_POINTER_REGNUM], -fsize); reg_names[FRAME_POINTER_REGNUM], -fsize);
#else #else
asm_fprintf (stream, "\tlink %s,%0I%wd\n", asm_fprintf (stream, "\tlink %s,%I%wd\n",
reg_names[FRAME_POINTER_REGNUM], -fsize); reg_names[FRAME_POINTER_REGNUM], -fsize);
#endif #endif
} }
@ -382,10 +382,10 @@ m68k_output_function_prologue (stream, size)
{ {
/* Adding negative number is faster on the 68040. */ /* Adding negative number is faster on the 68040. */
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tlink.w %s,%0I0\n\tadd.l %0I%wd,%Rsp\n", asm_fprintf (stream, "\tlink.w %s,%I0\n\tadd.l %I%wd,%Rsp\n",
reg_names[FRAME_POINTER_REGNUM], -fsize); reg_names[FRAME_POINTER_REGNUM], -fsize);
#else #else
asm_fprintf (stream, "\tlink %s,%0I0\n\taddl %0I%wd,%Rsp\n", asm_fprintf (stream, "\tlink %s,%I0\n\taddl %I%wd,%Rsp\n",
reg_names[FRAME_POINTER_REGNUM], -fsize); reg_names[FRAME_POINTER_REGNUM], -fsize);
#endif #endif
} }
@ -411,18 +411,18 @@ m68k_output_function_prologue (stream, size)
{ {
/* asm_fprintf() cannot handle %. */ /* asm_fprintf() cannot handle %. */
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tsubq.w %0I%wd,%Rsp\n", fsize + 4); asm_fprintf (stream, "\tsubq.w %I%wd,%Rsp\n", fsize + 4);
#else #else
asm_fprintf (stream, "\tsubqw %0I%wd,%Rsp\n", fsize + 4); asm_fprintf (stream, "\tsubqw %I%wd,%Rsp\n", fsize + 4);
#endif #endif
} }
else else
{ {
/* asm_fprintf() cannot handle %. */ /* asm_fprintf() cannot handle %. */
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tsubq.l %0I%wd,%Rsp\n", fsize + 4); asm_fprintf (stream, "\tsubq.l %I%wd,%Rsp\n", fsize + 4);
#else #else
asm_fprintf (stream, "\tsubql %0I%wd,%Rsp\n", fsize + 4); asm_fprintf (stream, "\tsubql %I%wd,%Rsp\n", fsize + 4);
#endif #endif
} }
} }
@ -433,10 +433,10 @@ m68k_output_function_prologue (stream, size)
/* asm_fprintf() cannot handle %. */ /* asm_fprintf() cannot handle %. */
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, asm_fprintf (stream,
"\tsubq.w %0I8,%Rsp\n\tsubq.w %0I%wd,%Rsp\n", "\tsubq.w %I8,%Rsp\n\tsubq.w %I%wd,%Rsp\n",
fsize + 4 - 8); fsize + 4 - 8);
#else #else
asm_fprintf (stream, "\tsubqw %0I8,%Rsp\n\tsubqw %0I%wd,%Rsp\n", asm_fprintf (stream, "\tsubqw %I8,%Rsp\n\tsubqw %I%wd,%Rsp\n",
fsize + 4 - 8); fsize + 4 - 8);
#endif #endif
} }
@ -447,9 +447,9 @@ m68k_output_function_prologue (stream, size)
/* Adding negative number is faster on the 68040. */ /* Adding negative number is faster on the 68040. */
/* asm_fprintf() cannot handle %. */ /* asm_fprintf() cannot handle %. */
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tadd.w %0I%wd,%Rsp\n", - (fsize + 4)); asm_fprintf (stream, "\tadd.w %I%wd,%Rsp\n", - (fsize + 4));
#else #else
asm_fprintf (stream, "\taddw %0I%wd,%Rsp\n", - (fsize + 4)); asm_fprintf (stream, "\taddw %I%wd,%Rsp\n", - (fsize + 4));
#endif #endif
} }
else else
@ -465,9 +465,9 @@ m68k_output_function_prologue (stream, size)
{ {
/* asm_fprintf() cannot handle %. */ /* asm_fprintf() cannot handle %. */
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tadd.l %0I%wd,%Rsp\n", - (fsize + 4)); asm_fprintf (stream, "\tadd.l %I%wd,%Rsp\n", - (fsize + 4));
#else #else
asm_fprintf (stream, "\taddl %0I%wd,%Rsp\n", - (fsize + 4)); asm_fprintf (stream, "\taddl %I%wd,%Rsp\n", - (fsize + 4));
#endif #endif
} }
if (dwarf2out_do_frame ()) if (dwarf2out_do_frame ())
@ -488,9 +488,9 @@ m68k_output_function_prologue (stream, size)
if ((mask & 0xff) != 0) if ((mask & 0xff) != 0)
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tfmovm %0I0x%x,-(%Rsp)\n", mask & 0xff); asm_fprintf (stream, "\tfmovm %I0x%x,-(%Rsp)\n", mask & 0xff);
#else #else
asm_fprintf (stream, "\tfmovem %0I0x%x,%Rsp@-\n", mask & 0xff); asm_fprintf (stream, "\tfmovem %I0x%x,%Rsp@-\n", mask & 0xff);
#endif #endif
if (dwarf2out_do_frame ()) if (dwarf2out_do_frame ())
{ {
@ -602,18 +602,18 @@ m68k_output_function_prologue (stream, size)
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tlea (%d,%Rsp),%Rsp\n", -num_saved_regs*4); asm_fprintf (stream, "\tlea (%d,%Rsp),%Rsp\n", -num_saved_regs*4);
asm_fprintf (stream, "\tmovm.l %0I0x%x,(%Rsp)\n", newmask); asm_fprintf (stream, "\tmovm.l %I0x%x,(%Rsp)\n", newmask);
#else #else
asm_fprintf (stream, "\tlea %Rsp@(%d),%Rsp\n", -num_saved_regs*4); asm_fprintf (stream, "\tlea %Rsp@(%d),%Rsp\n", -num_saved_regs*4);
asm_fprintf (stream, "\tmoveml %0I0x%x,%Rsp@\n", newmask); asm_fprintf (stream, "\tmoveml %I0x%x,%Rsp@\n", newmask);
#endif #endif
} }
else else
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tmovm.l %0I0x%x,-(%Rsp)\n", mask); asm_fprintf (stream, "\tmovm.l %I0x%x,-(%Rsp)\n", mask);
#else #else
asm_fprintf (stream, "\tmoveml %0I0x%x,%Rsp@-\n", mask); asm_fprintf (stream, "\tmoveml %I0x%x,%Rsp@-\n", mask);
#endif #endif
} }
if (dwarf2out_do_frame ()) if (dwarf2out_do_frame ())
@ -639,7 +639,7 @@ m68k_output_function_prologue (stream, size)
asm_fprintf (stream, "\t%Olea (%Rpc, %U_GLOBAL_OFFSET_TABLE_@GOTPC), %s\n", asm_fprintf (stream, "\t%Olea (%Rpc, %U_GLOBAL_OFFSET_TABLE_@GOTPC), %s\n",
reg_names[PIC_OFFSET_TABLE_REGNUM]); reg_names[PIC_OFFSET_TABLE_REGNUM]);
#else #else
asm_fprintf (stream, "\tmovel %0I__GLOBAL_OFFSET_TABLE_, %s\n", asm_fprintf (stream, "\tmovel %I__GLOBAL_OFFSET_TABLE_, %s\n",
reg_names[PIC_OFFSET_TABLE_REGNUM]); reg_names[PIC_OFFSET_TABLE_REGNUM]);
asm_fprintf (stream, "\tlea %Rpc@(0,%s:l),%s\n", asm_fprintf (stream, "\tlea %Rpc@(0,%s:l),%s\n",
reg_names[PIC_OFFSET_TABLE_REGNUM], reg_names[PIC_OFFSET_TABLE_REGNUM],
@ -833,9 +833,9 @@ m68k_output_function_epilogue (stream, size)
&& (mask || fmask)) && (mask || fmask))
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\t%Omove.l %0I%wd,%Ra1\n", -fsize); asm_fprintf (stream, "\t%Omove.l %I%wd,%Ra1\n", -fsize);
#else #else
asm_fprintf (stream, "\tmovel %0I%wd,%Ra1\n", -fsize); asm_fprintf (stream, "\tmovel %I%wd,%Ra1\n", -fsize);
#endif #endif
fsize = 0, big = 1; fsize = 0, big = 1;
} }
@ -897,12 +897,12 @@ m68k_output_function_epilogue (stream, size)
if (big) if (big)
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tmovm.l -%wd(%s,%Ra1.l),%0I0x%x\n", asm_fprintf (stream, "\tmovm.l -%wd(%s,%Ra1.l),%I0x%x\n",
offset + fsize, offset + fsize,
reg_names[FRAME_POINTER_REGNUM], reg_names[FRAME_POINTER_REGNUM],
mask); mask);
#else #else
asm_fprintf (stream, "\tmoveml %s@(-%wd,%Ra1:l),%0I0x%x\n", asm_fprintf (stream, "\tmoveml %s@(-%wd,%Ra1:l),%I0x%x\n",
reg_names[FRAME_POINTER_REGNUM], reg_names[FRAME_POINTER_REGNUM],
offset + fsize, mask); offset + fsize, mask);
#endif #endif
@ -910,20 +910,20 @@ m68k_output_function_epilogue (stream, size)
else if (restore_from_sp) else if (restore_from_sp)
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tmovm.l (%Rsp)+,%0I0x%x\n", mask); asm_fprintf (stream, "\tmovm.l (%Rsp)+,%I0x%x\n", mask);
#else #else
asm_fprintf (stream, "\tmoveml %Rsp@+,%0I0x%x\n", mask); asm_fprintf (stream, "\tmoveml %Rsp@+,%I0x%x\n", mask);
#endif #endif
} }
else else
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tmovm.l -%wd(%s),%0I0x%x\n", asm_fprintf (stream, "\tmovm.l -%wd(%s),%I0x%x\n",
offset + fsize, offset + fsize,
reg_names[FRAME_POINTER_REGNUM], reg_names[FRAME_POINTER_REGNUM],
mask); mask);
#else #else
asm_fprintf (stream, "\tmoveml %s@(-%wd),%0I0x%x\n", asm_fprintf (stream, "\tmoveml %s@(-%wd),%I0x%x\n",
reg_names[FRAME_POINTER_REGNUM], reg_names[FRAME_POINTER_REGNUM],
offset + fsize, mask); offset + fsize, mask);
#endif #endif
@ -934,12 +934,12 @@ m68k_output_function_epilogue (stream, size)
if (big) if (big)
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tfmovm -%wd(%s,%Ra1.l),%0I0x%x\n", asm_fprintf (stream, "\tfmovm -%wd(%s,%Ra1.l),%I0x%x\n",
foffset + fsize, foffset + fsize,
reg_names[FRAME_POINTER_REGNUM], reg_names[FRAME_POINTER_REGNUM],
fmask); fmask);
#else #else
asm_fprintf (stream, "\tfmovem %s@(-%wd,%Ra1:l),%0I0x%x\n", asm_fprintf (stream, "\tfmovem %s@(-%wd,%Ra1:l),%I0x%x\n",
reg_names[FRAME_POINTER_REGNUM], reg_names[FRAME_POINTER_REGNUM],
foffset + fsize, fmask); foffset + fsize, fmask);
#endif #endif
@ -947,20 +947,20 @@ m68k_output_function_epilogue (stream, size)
else if (restore_from_sp) else if (restore_from_sp)
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tfmovm (%Rsp)+,%0I0x%x\n", fmask); asm_fprintf (stream, "\tfmovm (%Rsp)+,%I0x%x\n", fmask);
#else #else
asm_fprintf (stream, "\tfmovem %Rsp@+,%0I0x%x\n", fmask); asm_fprintf (stream, "\tfmovem %Rsp@+,%I0x%x\n", fmask);
#endif #endif
} }
else else
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tfmovm -%wd(%s),%0I0x%x\n", asm_fprintf (stream, "\tfmovm -%wd(%s),%I0x%x\n",
foffset + fsize, foffset + fsize,
reg_names[FRAME_POINTER_REGNUM], reg_names[FRAME_POINTER_REGNUM],
fmask); fmask);
#else #else
asm_fprintf (stream, "\tfmovem %s@(-%wd),%0I0x%x\n", asm_fprintf (stream, "\tfmovem %s@(-%wd),%I0x%x\n",
reg_names[FRAME_POINTER_REGNUM], reg_names[FRAME_POINTER_REGNUM],
foffset + fsize, fmask); foffset + fsize, fmask);
#endif #endif
@ -977,17 +977,17 @@ m68k_output_function_epilogue (stream, size)
if (!TARGET_5200) if (!TARGET_5200)
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\taddq.w %0I%wd,%Rsp\n", fsize + 4); asm_fprintf (stream, "\taddq.w %I%wd,%Rsp\n", fsize + 4);
#else #else
asm_fprintf (stream, "\taddqw %0I%wd,%Rsp\n", fsize + 4); asm_fprintf (stream, "\taddqw %I%wd,%Rsp\n", fsize + 4);
#endif #endif
} }
else else
{ {
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\taddq.l %0I%wd,%Rsp\n", fsize + 4); asm_fprintf (stream, "\taddq.l %I%wd,%Rsp\n", fsize + 4);
#else #else
asm_fprintf (stream, "\taddql %0I%wd,%Rsp\n", fsize + 4); asm_fprintf (stream, "\taddql %I%wd,%Rsp\n", fsize + 4);
#endif #endif
} }
} }
@ -997,10 +997,10 @@ m68k_output_function_epilogue (stream, size)
add a small integer (8 < N <= 16) to a register. */ add a small integer (8 < N <= 16) to a register. */
/* asm_fprintf() cannot handle %. */ /* asm_fprintf() cannot handle %. */
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\taddq.w %0I8,%Rsp\n\taddq.w %0I%wd,%Rsp\n", asm_fprintf (stream, "\taddq.w %I8,%Rsp\n\taddq.w %I%wd,%Rsp\n",
fsize + 4 - 8); fsize + 4 - 8);
#else #else
asm_fprintf (stream, "\taddqw %0I8,%Rsp\n\taddqw %0I%wd,%Rsp\n", asm_fprintf (stream, "\taddqw %I8,%Rsp\n\taddqw %I%wd,%Rsp\n",
fsize + 4 - 8); fsize + 4 - 8);
#endif #endif
} }
@ -1012,9 +1012,9 @@ m68k_output_function_epilogue (stream, size)
{ {
/* asm_fprintf() cannot handle %. */ /* asm_fprintf() cannot handle %. */
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tadd.w %0I%wd,%Rsp\n", fsize + 4); asm_fprintf (stream, "\tadd.w %I%wd,%Rsp\n", fsize + 4);
#else #else
asm_fprintf (stream, "\taddw %0I%wd,%Rsp\n", fsize + 4); asm_fprintf (stream, "\taddw %I%wd,%Rsp\n", fsize + 4);
#endif #endif
} }
else else
@ -1030,9 +1030,9 @@ m68k_output_function_epilogue (stream, size)
{ {
/* asm_fprintf() cannot handle %. */ /* asm_fprintf() cannot handle %. */
#ifdef MOTOROLA #ifdef MOTOROLA
asm_fprintf (stream, "\tadd.l %0I%wd,%Rsp\n", fsize + 4); asm_fprintf (stream, "\tadd.l %I%wd,%Rsp\n", fsize + 4);
#else #else
asm_fprintf (stream, "\taddl %0I%wd,%Rsp\n", fsize + 4); asm_fprintf (stream, "\taddl %I%wd,%Rsp\n", fsize + 4);
#endif #endif
} }
} }
@ -1045,7 +1045,7 @@ m68k_output_function_epilogue (stream, size)
#endif #endif
} }
if (current_function_pops_args) if (current_function_pops_args)
asm_fprintf (stream, "\trtd %0I%d\n", current_function_pops_args); asm_fprintf (stream, "\trtd %I%d\n", current_function_pops_args);
else else
fprintf (stream, "\trts\n"); fprintf (stream, "\trts\n");
} }
@ -2829,7 +2829,7 @@ print_operand (file, op, letter)
} }
else if (letter == '#') else if (letter == '#')
{ {
asm_fprintf (file, "%0I"); asm_fprintf (file, "%I");
} }
else if (letter == '-') else if (letter == '-')
{ {
@ -2932,7 +2932,7 @@ print_operand (file, op, letter)
{ {
/* Use `print_operand_address' instead of `output_addr_const' /* Use `print_operand_address' instead of `output_addr_const'
to ensure that we print relevant PIC stuff. */ to ensure that we print relevant PIC stuff. */
asm_fprintf (file, "%0I"); asm_fprintf (file, "%I");
if (TARGET_PCREL if (TARGET_PCREL
&& (GET_CODE (op) == SYMBOL_REF || GET_CODE (op) == CONST)) && (GET_CODE (op) == SYMBOL_REF || GET_CODE (op) == CONST))
print_operand_address (file, op); print_operand_address (file, op);

View File

@ -1396,7 +1396,7 @@ __transfer_from_trampoline () \
`assemble_name' uses this. */ `assemble_name' uses this. */
#define ASM_OUTPUT_LABELREF(FILE,NAME) \ #define ASM_OUTPUT_LABELREF(FILE,NAME) \
asm_fprintf (FILE, "%0U%s", NAME) asm_fprintf (FILE, "%U%s", NAME)
/* This is how to store into the string LABEL /* This is how to store into the string LABEL
the symbol_ref name of an internal numbered label where the symbol_ref name of an internal numbered label where