On 04/20/2016 12:22 AM, tbsaunde+...@tbsaunde.org wrote:
From: Trevor Saunders <tbsaunde+...@tbsaunde.org>
gcc/ChangeLog:
2016-04-19 Trevor Saunders <tbsaunde+...@tbsaunde.org>
* print-rtl.c (print_rtx_insn_vec): New function.
* print-rtl.h: New prototype.
* rtl.h: Likewise.
* store-motion.c (struct st_expr): Make avail_stores a vector.
(st_expr_entry): Adjust.
(free_st_expr_entry): Likewise.
(print_store_motion_mems): Likewise.
(find_moveable_store): Likewise.
(compute_store_table): Likewise.
(delete_store): Likewise.
(build_store_vectors): Likewise.
---
gcc/print-rtl.c | 15 +++++++++++++++
gcc/print-rtl.h | 1 +
gcc/rtl.h | 1 +
gcc/store-motion.c | 31 +++++++++++++++----------------
4 files changed, 32 insertions(+), 16 deletions(-)
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index 85d9b8d..cf4922f 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -870,6 +870,21 @@ print_simple_rtl (FILE *outf, const_rtx x)
flag_simple = 0;
}
+void
+print_rtx_insn_vec (FILE *file, const vec<rtx_insn *> &vec)
Function comment.
index 8267252..167c090 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -3572,6 +3572,7 @@ extern void print_simple_rtl (FILE *, const_rtx);
extern int print_rtl_single (FILE *, const_rtx);
extern int print_rtl_single_with_indent (FILE *, const_rtx, int);
extern void print_inline_rtx (FILE *, const_rtx, int);
+extern void print_rtx_insn_vec (FILE *file, const vec<rtx_insn *> &vec);
Why a prototype in rtl.h rather than including print-rtl wherever it was
needed?
OK with the nits pointed out by Segher fixed and those pointed out above
fixed.
jeff