* print-rtl.c (debug_rtx_range): New.
* rtl.h (debug_rtx_range): Declare.
* varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32996
138bc75d-0d04-0410-961f-
82ee72b054a4
2000-04-07 Richard Henderson <rth@cygnus.com>
+ * ggc.h (struct rtx_def): Forward declare.
+
+ * print-rtl.c (debug_rtx_range): New.
+ * rtl.h (debug_rtx_range): Declare.
+
+ * varray.h (VARRAY_ACTIVE_SIZE, VARRAY_POP_ALL): New.
+
* gcse.c (gcse_main): Don't rebuild the CFG here.
(delete_null_pointer_checks): Likewise.
* ssa.c (convert_to_ssa): Likewise.
struct expr_status;
struct hash_table;
struct label_node;
+struct rtx_def;
struct rtvec_def;
struct stmt_status;
union tree_node;
debug_rtx (insn);
}
+/* Call this function to print an rtx list from START to END inclusive. */
+
+void
+debug_rtx_range (start, end)
+ rtx start, end;
+{
+ while (1)
+ {
+ debug_rtx (start);
+ if (!start || start == end)
+ break;
+ start = NEXT_INSN (start);
+ }
+}
+
/* Call this function to search an rtx list to find one with insn uid UID,
and then call debug_rtx_list to print it, using DEBUG_RTX_COUNT.
The found insn is returned to enable further debugging analysis. */
/* In print-rtl.c */
extern void debug_rtx PARAMS ((rtx));
extern void debug_rtx_list PARAMS ((rtx, int));
+extern void debug_rtx_range PARAMS ((rtx, rtx));
extern rtx debug_rtx_find PARAMS ((rtx, int));
#ifdef BUFSIZ
extern void print_rtl PARAMS ((FILE *, rtx));
#define VARRAY_SIZE(VA) ((VA)->num_elements)
+#define VARRAY_ACTIVE_SIZE(VA) ((VA)->elements_used)
+#define VARRAY_POP_ALL(VA) ((VA)->elements_used = 0)
+
/* Check for VARRAY_xxx macros being in bound. */
#if defined ENABLE_CHECKING && (GCC_VERSION >= 2007)
extern void varray_check_failed PARAMS ((varray_type, size_t,