diff options
author | Richard Henderson <rth@cygnus.com> | 2000-04-07 02:24:06 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-04-07 02:24:06 -0700 |
commit | 4c85a96d6e0a24baeeb64a13e1d522b5ee04d76f (patch) | |
tree | 8f84c5a6db1901dc589ad46eae5388cda4a8d7fd /gcc/print-rtl.c | |
parent | a18820c64c3148a53112cb1f740d2b03a5c08538 (diff) | |
download | gcc-4c85a96d6e0a24baeeb64a13e1d522b5ee04d76f.zip gcc-4c85a96d6e0a24baeeb64a13e1d522b5ee04d76f.tar.gz gcc-4c85a96d6e0a24baeeb64a13e1d522b5ee04d76f.tar.bz2 |
ggc.h (struct rtx_def): Forward declare.
* 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.
From-SVN: r32996
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 2c7194a..4c59163 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -450,6 +450,21 @@ debug_rtx_list (x, n) 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. */ |