summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-23 09:44:28 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-23 09:44:28 +0000
commita028f6e93498bf753125553e07a0915900486235 (patch)
treec5a5f630a8a45837c59a4bf32e55973c5cd4f1e6
parent54fc6bd48d0bd4ba471802f6d4c53298cd704710 (diff)
downloadgcc-a028f6e93498bf753125553e07a0915900486235.tar.gz
Display LABEL_NUSES when printing a code label
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26600 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/print-rtl.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 573bfb1407e..412b22d452a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Fri Apr 23 09:43:18 1999 Nick Clifton <nickc@cygnus.com>
+
+ * print-rtl.c (print_rtx): Display LABEL_NUSES for labels.
+
Thu Apr 22 23:08:37 1999 Mark Mitchell <mark@codesourcery.com>
* toplev.h (wrapup_global_declarations): Declare.
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index a94ce0a0bce..e097aadfe48 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -318,6 +318,9 @@ print_rtx (in_rtx)
}
#endif
+ if (GET_CODE (in_rtx) == CODE_LABEL)
+ fprintf (outfile, " [num uses: %d]", LABEL_NUSES (in_rtx));
+
if (dump_for_graph
&& (is_insn || GET_CODE (in_rtx) == NOTE
|| GET_CODE (in_rtx) == CODE_LABEL || GET_CODE (in_rtx) == BARRIER))