]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(finalize_pic): Emit USE insn at start and end of function.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 6 Jun 1995 18:58:32 +0000 (14:58 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 6 Jun 1995 18:58:32 +0000 (14:58 -0400)
From-SVN: r9890

gcc/config/m68k/m68k.c

index 7719c3bbb8f47bed855ba0893c5b389f24bb50c6..8adef7529b49f7b727f111e49d674e60966a0958 100644 (file)
@@ -62,7 +62,11 @@ void
 finalize_pic ()
 {
   if (flag_pic && current_function_uses_pic_offset_table)
-    emit_insn (gen_rtx (USE, VOIDmode, pic_offset_table_rtx));
+    {
+      rtx insn = gen_rtx (USE, VOIDmode, pic_offset_table_rtx);
+      emit_insn_after (insn, get_insns ());
+      emit_insn (insn);
+    }
 }
 
 \f