make prologue_epilogue_contains take a rtx_insn *

gcc/ChangeLog:

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.

From-SVN: r242655
This commit is contained in:
Trevor Saunders 2016-11-21 06:16:08 +00:00 committed by Trevor Saunders
parent f087c7739f
commit 87ac59a062
3 changed files with 17 additions and 9 deletions

View File

@ -1,3 +1,11 @@
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

View File

@ -142,7 +142,7 @@ extern tree debug_find_var_in_block_tree (tree, tree);
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 *);
@ -5733,7 +5733,7 @@ maybe_copy_prologue_epilogue_insn (rtx insn, rtx copy)
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;
@ -5748,23 +5748,23 @@ contains (const_rtx insn, hash_table<insn_cache_hasher> *hash)
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;

View File

@ -631,9 +631,9 @@ extern void clobber_return_register (void);
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);