m68k: fix bad use of register alias in cfi insn
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 25 Jun 2013 16:57:42 +0000 (18:57 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 25 Jun 2013 17:03:46 +0000 (19:03 +0200)
ports/ChangeLog.m68k
ports/sysdeps/m68k/sysdep.h

index f9a5f0b2135e0d49399961c00feb9b19c3bd80e5..c5b1e2156dc8681fb46be3b565be53ae7d368154 100644 (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:
index cd34dd8369a13e19dc726051d90134835794c517..f8ad70e01b4dcdc2f07b5ace4973d7482fe6189e 100644 (file)
    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