diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2016-11-21 06:16:08 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2016-11-21 06:16:08 +0000 |
commit | 87ac59a062abf0f2a9276fb0123f1d904acadc67 (patch) | |
tree | 86e9285d9fbf0b948a752358ee2763ba986a7866 | |
parent | f087c7739f5eec0f36e198ae32c1a88db710c07d (diff) | |
download | gcc-87ac59a062abf0f2a9276fb0123f1d904acadc67.zip gcc-87ac59a062abf0f2a9276fb0123f1d904acadc67.tar.gz gcc-87ac59a062abf0f2a9276fb0123f1d904acadc67.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/function.c | 12 | ||||
-rw-r--r-- | gcc/function.h | 6 |
3 files changed, 17 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 226bf3e..fb54d76 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,13 @@ 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 rtx_insn *. * optabs.h: Adjust prototype. diff --git a/gcc/function.c b/gcc/function.c index 491f3d1..f191b57 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -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; diff --git a/gcc/function.h b/gcc/function.h index b564f45..1aebd90 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -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); |