diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-09-09 15:20:07 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-09-09 15:20:07 +0000 |
commit | a1950df341b382e455df8f1e58fe29242cc55c08 (patch) | |
tree | 399a1b396970c0a0432d272941b58678b1185cf2 /gcc/emit-rtl.c | |
parent | d6e1e8b8d1663dd2b25bc9e27ca099568848c641 (diff) | |
download | gcc-a1950df341b382e455df8f1e58fe29242cc55c08.zip gcc-a1950df341b382e455df8f1e58fe29242cc55c08.tar.gz gcc-a1950df341b382e455df8f1e58fe29242cc55c08.tar.bz2 |
INSN_LOCATION takes an rtx_insn
gcc/ChangeLog:
2014-09-09 David Malcolm <dmalcolm@redhat.com>
* rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
const rtx_insn *, and from rtx to rtx_insn * for the other
overloaded variant.
(RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
INSN_LOCATION, since we know INSN_P holds.
(insn_line): Strengthen param from const_rtx to const rtx_insn *.
(insn_file): Likewise.
(insn_scope): Likewise.
(insn_location): Likewise.
* config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
"insn" from rtx to rtx_insn *, introducing a new local rtx "set"
for the result of gen_load_const_gp.
* config/rs6000/rs6000-protos.h (output_call): Strengthen first
param from rtx to rtx_insn *.
* config/rs6000/rs6000.c (output_call): Likewise.
* dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
introducing a checked cast to rtx_sequence * and use of the insn
method.
* emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
from rtx to rtx_insn *.
(insn_scope): Strengthen param from const_rtx to const rtx_insn *.
(insn_line): Likewise.
(insn_file): Likewise.
(insn_location): Likewise.
* emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
from rtx to rtx_insn *.
* print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
cast, using it for calls to INSN_HAS_LOCATION and insn_location.
* recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
via a checked cast.
* reorg.c (relax_delay_slots): Strengthen locals named "after"
from rtx to rtx_insn *; use methods of "pat" for type-safety.
From-SVN: r215084
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 0acdd08..34bf271 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -6144,7 +6144,7 @@ init_emit_once (void) Care updating of libcall regions if present. */ rtx_insn * -emit_copy_of_insn_after (rtx insn, rtx after) +emit_copy_of_insn_after (rtx_insn *insn, rtx_insn *after) { rtx_insn *new_rtx; rtx link; @@ -6258,28 +6258,28 @@ curr_insn_location (void) /* Return lexical scope block insn belongs to. */ tree -insn_scope (const_rtx insn) +insn_scope (const rtx_insn *insn) { return LOCATION_BLOCK (INSN_LOCATION (insn)); } /* Return line number of the statement that produced this insn. */ int -insn_line (const_rtx insn) +insn_line (const rtx_insn *insn) { return LOCATION_LINE (INSN_LOCATION (insn)); } /* Return source file of the statement that produced this insn. */ const char * -insn_file (const_rtx insn) +insn_file (const rtx_insn *insn) { return LOCATION_FILE (INSN_LOCATION (insn)); } /* Return expanded location of the statement that produced this insn. */ expanded_location -insn_location (const_rtx insn) +insn_location (const rtx_insn *insn) { return expand_location (INSN_LOCATION (insn)); } |