aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-04-06 06:35:56 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-04-06 06:35:56 -0400
commit2d0933a2523e8f6ce0fc5115b550b778a549fbcc (patch)
treeff795955c4bde57611e7a97b41670695751f5111 /gcc
parenta78a8d589e87c8c008b068393ea9610ab88ed5e5 (diff)
downloadgcc-2d0933a2523e8f6ce0fc5115b550b778a549fbcc.zip
gcc-2d0933a2523e8f6ce0fc5115b550b778a549fbcc.tar.gz
gcc-2d0933a2523e8f6ce0fc5115b550b778a549fbcc.tar.bz2
(output_function_prologue): pea/move: Fix typos.
asm_fprintf("add%.[wl] ...): Undo previous change. From-SVN: r6970
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/m68k/m68k.c32
1 files changed, 26 insertions, 6 deletions
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index 347c066..8d73d2b 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -93,7 +93,7 @@ output_function_prologue (stream, size)
if (frame_pointer_needed)
{
- if (fsize == 0 && TARGET_68040_ONLY)
+ if (fsize == 0 && TARGET_68040)
{
/* on the 68040, pea + move is faster than link.w 0 */
#ifdef MOTOROLA
@@ -101,7 +101,7 @@ output_function_prologue (stream, size)
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",
+ 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]);
#endif
@@ -143,11 +143,21 @@ output_function_prologue (stream, size)
/* Adding negative number is faster on the 68040. */
if (fsize + 4 < 0x8000)
{
- asm_fprintf (stream, "\tadd%.w %0I%d,%Rsp\n", - (fsize + 4));
+ /* asm_fprintf() cannot handle %. */
+#ifdef MOTOROLA
+ asm_fprintf (stream, "\tadd.w %0I%d,%Rsp\n", - (fsize + 4));
+#else
+ asm_fprintf (stream, "\taddw %0I%d,%Rsp\n", - (fsize + 4));
+#endif
}
else
{
- asm_fprintf (stream, "\tadd%.l %0I%d,%Rsp\n", - (fsize + 4));
+ /* asm_fprintf() cannot handle %. */
+#ifdef MOTOROLA
+ asm_fprintf (stream, "\tadd.l %0I%d,%Rsp\n", - (fsize + 4));
+#else
+ asm_fprintf (stream, "\taddl %0I%d,%Rsp\n", - (fsize + 4));
+#endif
}
}
#ifdef SUPPORT_SUN_FPA
@@ -501,11 +511,21 @@ output_function_epilogue (stream, size)
{
if (fsize + 4 < 0x8000)
{
- asm_fprintf (stream, "\tadd%.w %0I%d,%Rsp\n", fsize + 4);
+ /* asm_fprintf() cannot handle %. */
+#ifdef MOTOROLA
+ asm_fprintf (stream, "\tadd.w %0I%d,%Rsp\n", fsize + 4);
+#else
+ asm_fprintf (stream, "\taddw %0I%d,%Rsp\n", fsize + 4);
+#endif
}
else
{
- asm_fprintf (stream, "\tadd%.l %0I%d,%Rsp\n", fsize + 4);
+ /* asm_fprintf() cannot handle %. */
+#ifdef MOTOROLA
+ asm_fprintf (stream, "\tadd.l %0I%d,%Rsp\n", fsize + 4);
+#else
+ asm_fprintf (stream, "\taddl %0I%d,%Rsp\n", fsize + 4);
+#endif
}
}
if (current_function_pops_args)