sh.c (expand_prologue): Fix mis-applied 2001-11-09's patch.
authorAlexandre Oliva <aoliva@redhat.com>
Sat, 9 Feb 2002 03:51:25 +0000 (03:51 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sat, 9 Feb 2002 03:51:25 +0000 (03:51 +0000)
* config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
patch.

From-SVN: r49631

gcc/ChangeLog
gcc/config/sh/sh.c

index 6d0d26798b3586cd86e357f66b7d9a1c26900c09..5c88767aa6dad5675e90086b9e2efb006afb3bc3 100644 (file)
@@ -1,5 +1,8 @@
 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
 
+       * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
+       patch.
+       
        Contribute sh64-elf.
        2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
        * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
index c408caaabe15a7f7a1480a5dc5b3cabec28825ba..9a2885320b568759802c442d1f930a9a0b78adf9 100644 (file)
@@ -4453,6 +4453,13 @@ sh_expand_prologue ()
 
   extra_push = 0;
 
+  if (TARGET_SHCOMPACT && flag_pic && current_function_args_info.call_cookie)
+    /* We're going to use the PIC register to load the address of the
+       incoming-argument decoder and/or of the return trampoline from
+       the GOT, so make sure the PIC register is preserved and
+       initialized.  */
+    regs_ever_live[PIC_OFFSET_TABLE_REGNUM] = 1;
+
   if (TARGET_SHCOMPACT
       && (current_function_args_info.call_cookie & ~ CALL_COOKIE_RET_TRAMP(1)))
     {
@@ -4734,13 +4741,6 @@ sh_expand_prologue ()
   if (frame_pointer_needed)
     emit_insn (GEN_MOV (frame_pointer_rtx, stack_pointer_rtx));
 
-  if (TARGET_SHCOMPACT && flag_pic && current_function_args_info.call_cookie)
-    /* We're going to use the PIC register to load the address of the
-       incoming-argument decoder and/or of the return trampoline from
-       the GOT, so make sure the PIC register is preserved and
-       initialized.  */
-    regs_ever_live[PIC_OFFSET_TABLE_REGNUM] = 1;
-
   if (TARGET_SHCOMPACT
       && (current_function_args_info.call_cookie & ~ CALL_COOKIE_RET_TRAMP(1)))
     {