m68k: fix bad use of register alias in cfi insn

This commit is contained in:
Andreas Schwab 2013-06-25 18:57:42 +02:00
parent 385fd0d524
commit 5ccb431120
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-06-25 Andreas Schwab <schwab@linux-m68k.org>
* sysdeps/m68k/sysdep.h (CALL_MCOUNT) [PROF]: Use %a6 instead of
%fp in cfi insns.
2013-06-15 Siddhesh Poyarekar <siddhesh@redhat.com>
* sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:

View File

@ -45,11 +45,11 @@
to locate our caller, so push one just for its benefit. */
# define CALL_MCOUNT \
move.l %fp, -(%sp); \
cfi_adjust_cfa_offset (4); cfi_rel_offset (%fp, 0); \
cfi_adjust_cfa_offset (4); cfi_rel_offset (%a6, 0); \
move.l %sp, %fp; \
jbsr JUMPTARGET (_mcount); \
move.l (%sp)+, %fp; \
cfi_adjust_cfa_offset (-4); cfi_restore (%fp);
cfi_adjust_cfa_offset (-4); cfi_restore (%a6);
# else
# define CALL_MCOUNT /* Do nothing. */
# endif