]> gcc.gnu.org Git - gcc.git/commitdiff
m68hc11.h (RETURN_ADDR_RTX): Fix return address when -fomit-frame-pointer is used.
authorStephane Carrez <Stephane.Carrez@worldnet.fr>
Thu, 5 Jul 2001 21:04:33 +0000 (23:04 +0200)
committerStephane Carrez <ciceron@gcc.gnu.org>
Thu, 5 Jul 2001 21:04:33 +0000 (23:04 +0200)
* config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
when -fomit-frame-pointer is used.

From-SVN: r43789

gcc/ChangeLog
gcc/config/m68hc11/m68hc11.h

index 3808c1d87941e3b98dc3f4919744bc84a1598bdc..cd9975771b0a8f831324a75fda33b6eacc42f02e 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
+
+       * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
+       when -fomit-frame-pointer is used.
+
 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
 
        * flow.c: Reverse Jan Hubicka's patch of 02July2001.
index 5af1db2112a47b95058627d57742d140097b7b21..25472c22405749421b4814862e6b43168105cf44 100644 (file)
@@ -892,10 +892,10 @@ extern int m68hc11_sp_correction;
 #define INCOMING_RETURN_ADDR_RTX \
     gen_rtx_MEM (VOIDmode, gen_rtx_REG (VOIDmode, STACK_POINTER_REGNUM))
 
-/* After the prologue, RA is at -2(AP) in the current frame.  */
+/* After the prologue, RA is at 0(AP) in the current frame.  */
 #define RETURN_ADDR_RTX(COUNT, FRAME)                                  \
   ((COUNT) == 0                                                                \
-   ? gen_rtx_MEM (Pmode, plus_constant (arg_pointer_rtx, -2))\
+   ? gen_rtx_MEM (Pmode, arg_pointer_rtx)                               \
    : 0)
 
 /* Before the prologue, the top of the frame is at 2(sp).  */
This page took 0.066833 seconds and 5 git commands to generate.