]> gcc.gnu.org Git - gcc.git/commitdiff
re PR target/11014 ([m68k] MIT / MOTOROLA assembly conflict)
authorGunther Nikl <gni@gecko.de>
Sat, 28 Jun 2003 00:36:23 +0000 (00:36 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Sat, 28 Jun 2003 00:36:23 +0000 (17:36 -0700)
PR target/11014
* config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
syntax for MIT / MOTOROLA.

From-SVN: r68623

gcc/ChangeLog
gcc/config/m68k/m68k.c

index 60e018b22345a091ac7a7f7016973d85645eaa09..d30b4db4ca8f64651b6f355b77728815331ecad7 100644 (file)
@@ -8,6 +8,10 @@
 
        * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
 
+       PR target/11014
+       * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
+       syntax for MIT / MOTOROLA.
+
 2003-06-27  Chris Demetriou  <cgd@broadcom.com>
 
        * config/mips/mips.c (mips_build_va_list): Make padding in
index d4df6cf335128336b31664efcf8e0d588d4a6ef5..3d034819ea376f7c1268cdad38e613fb6df322f0 100644 (file)
@@ -3691,11 +3691,23 @@ m68k_output_mi_thunk (file, thunk, delta, vcall_offset, function)
   const char *fmt;
 
   if (delta > 0 && delta <= 8)
+#ifdef MOTOROLA
     asm_fprintf (file, "\taddq.l %I%d,4(%Rsp)\n", (int) delta);
+#else
+    asm_fprintf (file, "\taddql %I%d,%Rsp@(4)\n", (int) delta);
+#endif
   else if (delta < 0 && delta >= -8)
+#ifdef MOTOROLA
     asm_fprintf (file, "\tsubq.l %I%d,4(%Rsp)\n", (int) -delta);
+#else
+    asm_fprintf (file, "\tsubql %I%d,%Rsp@(4)\n", (int) -delta);
+#endif
   else
+#ifdef MOTOROLA
     asm_fprintf (file, "\tadd.l %I%wd,4(%Rsp)\n", delta);
+#else
+    asm_fprintf (file, "\taddl %I%wd,%Rsp@(4)\n", delta);
+#endif
 
   xops[0] = DECL_RTL (function);
 
@@ -3720,7 +3732,7 @@ m68k_output_mi_thunk (file, thunk, delta, vcall_offset, function)
 #ifdef USE_GAS
          fmt = "bra.l %0";
 #else
-         fmt = "jbra %0,a1";
+         fmt = "jra %0,a1";
 #endif
 #endif
        }
@@ -3734,7 +3746,7 @@ m68k_output_mi_thunk (file, thunk, delta, vcall_offset, function)
       fmt = "jmp %0";
 #endif
 #else
-      fmt = "jbra %0";
+      fmt = "jra %0";
 #endif
     }
 
This page took 0.100417 seconds and 5 git commands to generate.