+Sat Aug 7 19:37:07 1999 Richard Henderson <rth@cygnus.com>
+
+ * function.c (init_function_start): Clear prologue & epilogue.
+ (prologue_epilogue_contains): New function.
+ * alias.c (init_alias_analysis): Use it.
+ * rtl.h (prologue_epilogue_contains): Declare it.
+
Sat Aug 7 19:32:16 1999 Richard Henderson <rth@cygnus.com>
* jump.c (onlyjump_p): New function.
/* Walk the insns adding values to the new_reg_base_value array. */
for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
{
+ if (prologue_epilogue_contains (insn))
+ continue;
if (GET_RTX_CLASS (GET_CODE (insn)) == 'i')
{
rtx note, set;
/* Global list of all compiled functions. */
struct function *all_functions = 0;
+
+/* These arrays record the INSN_UIDs of the prologue and epilogue insns. */
+static int *prologue;
+static int *epilogue;
\f
/* In order to evaluate some expressions, such as function calls returning
structures in memory, we need to temporarily allocate stack locations.
current_function_returns_pointer
= POINTER_TYPE_P (TREE_TYPE (DECL_RESULT (subr)));
+
+ /* No prologue/epilogue insns yet. */
+ prologue = epilogue = 0;
}
/* Indicate that the current function uses extra args
expand_fixups (get_insns ());
}
\f
-/* These arrays record the INSN_UIDs of the prologue and epilogue insns. */
-
-static int *prologue;
-static int *epilogue;
-
/* Create an array that records the INSN_UIDs of INSNS (either a sequence
or a single insn). */
}
return 0;
}
+
+int
+prologue_epilogue_contains (insn)
+ rtx insn;
+{
+ if (prologue && contains (insn, prologue))
+ return 1;
+ if (epilogue && contains (insn, epilogue))
+ return 1;
+ return 0;
+}
#endif /* HAVE_prologue || HAVE_epilogue */
/* Generate the prologue and epilogue RTL if the machine supports it. Thread
{
int insertted = 0;
- prologue = 0;
#ifdef HAVE_prologue
if (HAVE_prologue)
{
}
#endif
- epilogue = 0;
#ifdef HAVE_epilogue
if (HAVE_epilogue)
{
/* In function.c */
extern void reposition_prologue_and_epilogue_notes PROTO ((rtx));
extern void thread_prologue_and_epilogue_insns PROTO ((rtx));
+extern int prologue_epilogue_contains PROTO ((rtx));
extern void use_variable PROTO ((rtx));
extern HOST_WIDE_INT get_frame_size PROTO ((void));
extern void preserve_rtl_expr_result PROTO ((rtx));