+2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+
+ * function.c (contains): Change argument type to rtx_insn *.
+ (prologue_contains): Likewise.
+ (epilogue_contains): Likewise.
+ (prologue_epilogue_contains): Likewise.
+ * function.h: Adjust prototype.
+
2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* optabs.c (emit_libcall_block): Change argument type to
can always export `prologue_epilogue_contains'. */
static void record_insns (rtx_insn *, rtx, hash_table<insn_cache_hasher> **)
ATTRIBUTE_UNUSED;
-static bool contains (const_rtx, hash_table<insn_cache_hasher> *);
+static bool contains (const rtx_insn *, hash_table<insn_cache_hasher> *);
static void prepare_function_start (void);
static void do_clobber_return_reg (rtx, void *);
static void do_use_return_reg (rtx, void *);
we can be running after reorg, SEQUENCE rtl is possible. */
static bool
-contains (const_rtx insn, hash_table<insn_cache_hasher> *hash)
+contains (const rtx_insn *insn, hash_table<insn_cache_hasher> *hash)
{
if (hash == NULL)
return false;
return false;
}
- return hash->find (const_cast<rtx> (insn)) != NULL;
+ return hash->find (const_cast<rtx_insn *> (insn)) != NULL;
}
int
-prologue_contains (const_rtx insn)
+prologue_contains (const rtx_insn *insn)
{
return contains (insn, prologue_insn_hash);
}
int
-epilogue_contains (const_rtx insn)
+epilogue_contains (const rtx_insn *insn)
{
return contains (insn, epilogue_insn_hash);
}
int
-prologue_epilogue_contains (const_rtx insn)
+prologue_epilogue_contains (const rtx_insn *insn)
{
if (contains (insn, prologue_insn_hash))
return 1;
extern void expand_function_end (void);
extern rtx get_arg_pointer_save_area (void);
extern void maybe_copy_prologue_epilogue_insn (rtx, rtx);
-extern int prologue_contains (const_rtx);
-extern int epilogue_contains (const_rtx);
-extern int prologue_epilogue_contains (const_rtx);
+extern int prologue_contains (const rtx_insn *);
+extern int epilogue_contains (const rtx_insn *);
+extern int prologue_epilogue_contains (const rtx_insn *);
extern void record_prologue_seq (rtx_insn *);
extern void record_epilogue_seq (rtx_insn *);
extern void emit_return_into_block (bool simple_p, basic_block bb);