2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
+ * reload1.c (reloads_conflict, gen_reload): Make them static.
+ * reload.h: Remove the corresponding prototypes.
+
+2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
+
* reload.c (refers_to_mem_for_reload_p,
refers_to_regno_for_reload_p): Make them static.
* reload.h: Remove the corresponding prototypes.
extern void reload_cse_regs (rtx);
/* Functions in reload1.c: */
-extern int reloads_conflict (int, int);
/* Initialize the reload pass once per compilation. */
extern void init_reload (void);
replacement (such as sp), plus an offset. */
extern rtx eliminate_regs (rtx, enum machine_mode, rtx);
-/* Emit code to perform a reload from IN (which may be a reload register) to
- OUT (which may also be a reload register). IN or OUT is from operand
- OPNUM with reload type TYPE. */
-extern rtx gen_reload (rtx, rtx, int, enum reload_type);
-
/* Deallocate the reload register used by reload number R. */
extern void deallocate_reload_reg (int r);
static void add_auto_inc_notes (rtx, rtx);
#endif
static void copy_eh_notes (rtx, rtx);
+static int reloads_conflict (int, int);
+static rtx gen_reload (rtx, rtx, int, enum reload_type);
\f
/* Initialize the reload pass once per compilation. */
This function uses the same algorithm as reload_reg_free_p above. */
-int
+static int
reloads_conflict (int r1, int r2)
{
enum reload_type r1_type = rld[r1].when_needed;
Returns first insn emitted. */
-rtx
+static rtx
gen_reload (rtx out, rtx in, int opnum, enum reload_type type)
{
rtx last = get_last_insn ();