This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Minor m68k PIC cleanup
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Minor m68k PIC cleanup
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 28 Jun 1999 05:30:09 -0600
- Reply-To: law at cygnus dot com
Don Lindsay already made the PIC register fixed, so this long standing nonsense
can finally be deleted.
* m68k.h (FINALIZE_PIC): Delete.
* m68k.c (finalize_pic): Delete.
Index: m68k.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/m68k/m68k.c,v
retrieving revision 1.26
diff -c -3 -p -r1.26 m68k.c
*** m68k.c 1999/06/17 15:09:44 1.26
--- m68k.c 1999/06/28 11:27:45
*************** override_options ()
*** 127,150 ****
m68k_align_funcs = def_align;
}
- /* 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);
- }
- }
-
-
/* This function generates the assembly code for function entry.
STREAM is a stdio stream to output the code to.
SIZE is an int: how many units of temporary storage to allocate.
--- 127,132 ----
Index: m68k.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/m68k/m68k.h,v
retrieving revision 1.34
diff -c -3 -p -r1.34 m68k.h
*** m68k.h 1999/06/28 04:23:36 1.34
--- m68k.h 1999/06/28 11:27:50
*************** extern int target_flags;
*** 356,366 ****
/* 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
--- 356,361 ----