summaryrefslogtreecommitdiff
path: root/gcc/output.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-08-22 16:26:36 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-22 16:26:36 +0000
commitfa7af5812f2da9411baeffbc7aeedf749b8ef9d9 (patch)
tree4987759877150c5c1172a14e650d93626bf6d7d5 /gcc/output.h
parent836fca28a3fde96f8470d8d401e9ceadb7386bd5 (diff)
final.c: Use rtx_insn (also touches output.c and config/arc/arc.c)
gcc/ * output.h (final_scan_insn): Strengthen return type from rtx to rtx_insn *. (final_forward_branch_p): Likewise for param. (current_output_insn): Likewise for this global. * final.c (rtx debug_insn): Likewise for this variable. (current_output_insn): Likewise. (get_attr_length_1): Rename param "insn" to "uncast_insn", adding "insn" back in as an rtx_insn * with a checked cast, so that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the first param. (compute_alignments): Strengthen local "label" from rtx to rtx_insn *. (shorten_branches): Rename param from "first" to "uncast_first", introducing a new local rtx_insn * "first" using a checked cast to effectively strengthen "first" from rtx to rtx_insn * without affecting the type signature. Strengthen locals "insn", "seq", "next", "label" from rtx to rtx_insn *. (change_scope): Strengthen param "orig_insn" and local "insn" from rtx to rtx_insn *. (final_start_function): Rename param from "first" to "uncast_first", introducing a new local rtx_insn * "first" using a checked cast to effectively strengthen "first" from rtx to rtx_insn * without affecting the type signature. Strengthen local "insn" from rtx to rtx_insn *. (dump_basic_block_info): Strengthen param "insn" from rtx to rtx_insn *. (final): Rename param from "first" to "uncast_first", introducing a new local rtx_insn * "first" using a checked cast to effectively strengthen "first" from rtx to rtx_insn * without affecting the type signature. Strengthen locals "insn", "next" from rtx to rtx_insn *. (output_alternate_entry_point): Strengthen param "insn" from rtx to rtx_insn *. (call_from_call_insn): Strengthen param "insn" from rtx to rtx_call_insn *. (final_scan_insn): Rename param from "insn" to "uncast_insn", introducing a new local rtx_insn * "insn" using a checked cast to effectively strengthen "insn" from rtx to rtx_insn * without affecting the type signature. Strengthen return type and locals "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove now-redundant checked cast to rtx_insn * from both invocations of debug_hooks->var_location. Convert CALL_P into a dyn_cast, introducing a local "call_insn" for use when invoking call_from_call_insn. (notice_source_line): Strengthen param "insn" from rtx to rtx_insn *. (leaf_function_p): Likewise for local "insn". (final_forward_branch_p): Likewise. (leaf_renumber_regs): Likewise for param "first". (rest_of_clean_state): Likewise for locals "insn" and "next". (self_recursive_call_p): Likewise for param "insn". (collect_fn_hard_reg_usage): Likewise for local "insn". (get_call_fndecl): Likewise for param "insn". (get_call_cgraph_rtl_info): Likewise. (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn", introducing a new local rtx_insn * "insn" using a checked cast to effectively strengthen "insn" from rtx to rtx_insn * without affecting the type signature. * config/arc/arc.c (arc_final_prescan_insn): For now, add checked cast when assigning from param "insn" to current_output_insn. (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn * so that we can assign it back to current_output_insn. From-SVN: r214326
Diffstat (limited to 'gcc/output.h')
-rw-r--r--gcc/output.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/output.h b/gcc/output.h
index 53d575a3de6..e4799cfa6a1 100644
--- a/gcc/output.h
+++ b/gcc/output.h
@@ -70,7 +70,7 @@ extern void final (rtx, FILE *, int);
/* The final scan for one insn, INSN. Args are same as in `final', except
that INSN is the insn being scanned. Value returned is the next insn to
be scanned. */
-extern rtx final_scan_insn (rtx, FILE *, int, int, int *);
+extern rtx_insn *final_scan_insn (rtx, FILE *, int, int, int *);
/* Replace a SUBREG with a REG or a MEM, based on the thing it is a
subreg of. */
@@ -136,7 +136,7 @@ extern int leaf_function_p (void);
/* Return 1 if branch is a forward branch.
Uses insn_shuid array, so it works only in the final pass. May be used by
output templates to add branch prediction hints, for example. */
-extern int final_forward_branch_p (rtx);
+extern int final_forward_branch_p (rtx_insn *);
/* Return 1 if this function uses only the registers that can be
safely renumbered. */
@@ -321,7 +321,7 @@ extern const char *weak_global_object_name;
extern rtx current_insn_predicate;
/* Last insn processed by final_scan_insn. */
-extern rtx current_output_insn;
+extern rtx_insn *current_output_insn;
/* Nonzero while outputting an `asm' with operands.
This means that inconsistencies are the user's fault, so don't die.