X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fsched-vis.c;h=d4a5644f6c7ef12f65e4dc80e4062b3207bb2b22;hb=16bd2f3cbfa8c8526eeb3ed89b2f880fee4a9553;hp=5754a56a5fa744860557b33f167d9d4cfb20d3ff;hpb=48e1416a24d50cacbb2a5e06a9ee61dd8cbee313;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/sched-vis.c b/gcc/sched-vis.c index 5754a56a5fa..d4a5644f6c7 100644 --- a/gcc/sched-vis.c +++ b/gcc/sched-vis.c @@ -28,7 +28,6 @@ along with GCC; see the file COPYING3. If not see #include "obstack.h" #include "hard-reg-set.h" #include "basic-block.h" -#include "real.h" #include "insn-attr.h" #include "sched-int.h" #include "tree-pass.h" @@ -429,6 +428,11 @@ print_value (char *buf, const_rtx x, int verbose) char t[BUF_LEN]; char *cur = buf; + if (!x) + { + safe_concat (buf, buf, "(nil)"); + return; + } switch (GET_CODE (x)) { case CONST_INT: @@ -600,7 +604,7 @@ print_pattern (char *buf, const_rtx x, int verbose) sprintf (buf, "asm {%s}", XSTR (x, 0)); break; case ADDR_VEC: - break; + /* Fall through. */ case ADDR_DIFF_VEC: print_value (buf, XEXP (x, 0), verbose); break; @@ -764,7 +768,7 @@ dump_insn_slim (FILE *f, rtx x) } /* Emit a slim dump of X (an insn) to stderr. */ -void +DEBUG_FUNCTION void debug_insn_slim (rtx x) { dump_insn_slim (stderr, x); @@ -815,13 +819,13 @@ print_rtl_slim (FILE *f, rtx first, rtx last, int count, int flags) } } -void +DEBUG_FUNCTION void debug_bb_slim (struct basic_block_def *bb) { print_rtl_slim (stderr, BB_HEAD (bb), BB_END (bb), -1, 32); } -void +DEBUG_FUNCTION void debug_bb_n_slim (int n) { struct basic_block_def *bb = BASIC_BLOCK (n);