OSDN Git Service

2001-01-07 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
authorsirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Jan 2001 01:07:31 +0000 (01:07 +0000)
committersirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Jan 2001 01:07:31 +0000 (01:07 +0000)
* config/rs6000/rs6000.h (EPILOGUE_USES): New, mark link register
after reload.

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

gcc/ChangeLog
gcc/config/rs6000/rs6000.h

index a9c499a..53aa753 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-07  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
+
+       * config/rs6000/rs6000.h (EPILOGUE_USES): New, mark link register
+       after reload.
+
 2001-01-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * builtins.def (BUILT_IN_FPRINTF): New entry.
index af4d486..d6c24aa 100644 (file)
@@ -1559,6 +1559,14 @@ typedef struct rs6000_args
    its backpointer, which we maintain.  */
 #define EXIT_IGNORE_STACK      1
 
+/* Define this macro as a C expression that is nonzero for registers
+   that are used by the epilogue or the return' pattern.  The stack
+   and frame pointer registers are already be assumed to be used as
+   needed.  */
+
+#define        EPILOGUE_USES(REGNO)    \
+  (reload_completed && (REGNO) == LINK_REGISTER_REGNUM)
+
 /* This macro generates the assembly code for function exit,
    on machines that need it.  If FUNCTION_EPILOGUE is not defined
    then individual return instructions are generated for each