mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-11 07:34:30 +08:00
re PR target/11014 ([m68k] MIT / MOTOROLA assembly conflict)
PR target/11014 * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly syntax for MIT / MOTOROLA. From-SVN: r68623
This commit is contained in:
parent
8ce332308c
commit
1d6302b177
@ -8,6 +8,10 @@
|
|||||||
|
|
||||||
* unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
|
* 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>
|
2003-06-27 Chris Demetriou <cgd@broadcom.com>
|
||||||
|
|
||||||
* config/mips/mips.c (mips_build_va_list): Make padding in
|
* config/mips/mips.c (mips_build_va_list): Make padding in
|
||||||
|
@ -3691,11 +3691,23 @@ m68k_output_mi_thunk (file, thunk, delta, vcall_offset, function)
|
|||||||
const char *fmt;
|
const char *fmt;
|
||||||
|
|
||||||
if (delta > 0 && delta <= 8)
|
if (delta > 0 && delta <= 8)
|
||||||
|
#ifdef MOTOROLA
|
||||||
asm_fprintf (file, "\taddq.l %I%d,4(%Rsp)\n", (int) delta);
|
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)
|
else if (delta < 0 && delta >= -8)
|
||||||
|
#ifdef MOTOROLA
|
||||||
asm_fprintf (file, "\tsubq.l %I%d,4(%Rsp)\n", (int) -delta);
|
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
|
else
|
||||||
|
#ifdef MOTOROLA
|
||||||
asm_fprintf (file, "\tadd.l %I%wd,4(%Rsp)\n", delta);
|
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);
|
xops[0] = DECL_RTL (function);
|
||||||
|
|
||||||
@ -3720,7 +3732,7 @@ m68k_output_mi_thunk (file, thunk, delta, vcall_offset, function)
|
|||||||
#ifdef USE_GAS
|
#ifdef USE_GAS
|
||||||
fmt = "bra.l %0";
|
fmt = "bra.l %0";
|
||||||
#else
|
#else
|
||||||
fmt = "jbra %0,a1";
|
fmt = "jra %0,a1";
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -3734,7 +3746,7 @@ m68k_output_mi_thunk (file, thunk, delta, vcall_offset, function)
|
|||||||
fmt = "jmp %0";
|
fmt = "jmp %0";
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
fmt = "jbra %0";
|
fmt = "jra %0";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user