]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
m68k.h (FINALIZE_PIC): Delete.
authorJeffrey A Law <law@cygnus.com>
Mon, 28 Jun 1999 04:34:30 +0000 (04:34 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 28 Jun 1999 04:34:30 +0000 (22:34 -0600)
        * m68k.h (FINALIZE_PIC): Delete.
        * m68k.c (finalize_pic): Delete.
        * m68k.h (CONDITIONAL_REGISTER_USAGE): Make the PIC register fixed
        when -fpic/-fPIC.

From-SVN: r27806

gcc/ChangeLog
gcc/config/m68k/m68k.c
gcc/config/m68k/m68k.h

index 81a197f601d1e3c82a021ba7c60b334427030371..2dc9103ee013f5b3d2bd0ae20fe59ae08f5e5ff8 100644 (file)
@@ -1,3 +1,11 @@
+Mon Jun 28 05:32:09 1999  Jeffrey A Law  (law@cygnus.com)
+
+        * m68k.h (FINALIZE_PIC): Delete.
+        * m68k.c (finalize_pic): Delete.
+
+       * m68k.h (CONDITIONAL_REGISTER_USAGE): Make the PIC register fixed
+       when -fpic/-fPIC.
+
 Mon Jun 28 05:16:35 1999  Richard Henderson  <rth@cygnus.com>
 
        * m68k.h (PREFERRED_RELOAD_CLASS): Don't force any FP const_doubles
index 98f51978ac88d29185c7acd80178d12b3d17f966..2eef7123c8ff4b42da219c722d89c140cbd4274b 100644 (file)
@@ -125,24 +125,6 @@ override_options ()
   else
     m68k_align_funcs = def_align;
 }
-\f
-/* Emit a (use pic_offset_table_rtx) if we used PIC relocation in the 
-   function at any time during the compilation process.  In the future 
-   we should try and eliminate the USE if we can easily determine that 
-   all PIC references were deleted from the current function.  That would 
-   save an address register */
-   
-void
-finalize_pic ()
-{
-  if (flag_pic && current_function_uses_pic_offset_table)
-    {
-      rtx insn = gen_rtx_USE (VOIDmode, pic_offset_table_rtx);
-      emit_insn_after (insn, get_insns ());
-      emit_insn (insn);
-    }
-}
-
 \f
 /* This function generates the assembly code for function entry.
    STREAM is a stdio stream to output the code to.
index 8152cddb8b5bc7a3378ccd47a920ed4d2cef1d07..0864d9ee7e955910d55758bf350e674a97fb574b 100644 (file)
@@ -341,11 +341,6 @@ extern int target_flags;
 /* This defines the register which is used to hold the offset table for PIC. */
 #define PIC_OFFSET_TABLE_REGNUM 13
 
-/* Used to output a (use pic_offset_table_rtx) so that we 
-   always save/restore a5 in functions that use PIC relocation
-   at *any* time during the compilation process. */
-#define FINALIZE_PIC finalize_pic()
-
 #ifndef SUPPORT_SUN_FPA
 
 /* 1 for registers that have pervasive standard uses
@@ -446,6 +441,8 @@ extern int target_flags;
        if (TEST_HARD_REG_BIT (x, i))           \
        fixed_regs[i] = call_used_regs[i] = 1;  \
     }                                          \
+  if (flag_pic)                                        \
+    fixed_regs[PIC_OFFSET_TABLE_REGNUM] = 1;   \
 }
 
 #endif /* defined SUPPORT_SUN_FPA */