OSDN Git Service

* config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
authorciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jul 2001 21:04:33 +0000 (21:04 +0000)
committerciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jul 2001 21:04:33 +0000 (21:04 +0000)
when -fomit-frame-pointer is used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43789 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 3808c1d..cd99757 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 5af1db2..25472c2 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).  */