diff options
author | Richard Henderson <rth@cygnus.com> | 2000-04-27 00:18:08 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-04-27 00:18:08 -0700 |
commit | 0a2287bf899285f8b60b4af922e2fb8d9b4cce2a (patch) | |
tree | 95290d1b3a766f3853be710b660f7a5f14bbd6dc /gcc/graph.c | |
parent | f77046bbf90d5635de3c42233c79b07df680eb4c (diff) | |
download | gcc-0a2287bf899285f8b60b4af922e2fb8d9b4cce2a.zip gcc-0a2287bf899285f8b60b4af922e2fb8d9b4cce2a.tar.gz gcc-0a2287bf899285f8b60b4af922e2fb8d9b4cce2a.tar.bz2 |
rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
* rtlanal.c (dead_or_set_regno_p): Use find_regno_note.
* genconfig.c (main): Set all HAVE_foo to 1.
* graph.c (node_data): Use GET_NOTE_INSN_NAME instead of local array.
From-SVN: r33473
Diffstat (limited to 'gcc/graph.c')
-rw-r--r-- | gcc/graph.c | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/gcc/graph.c b/gcc/graph.c index f4dde01..9dd5c8d 100644 --- a/gcc/graph.c +++ b/gcc/graph.c @@ -147,33 +147,10 @@ darkgrey\n shape: ellipse" : "white", /* Print the RTL. */ if (GET_CODE (tmp_rtx) == NOTE) { - static const char *note_names[] = - { - NULL, - "deleted", - "block_beg", - "block_end", - "loop_beg", - "loop_end", - "function_end", - "setjmp", - "loop_cont", - "loop_vtop", - "prologue_end", - "epilogue_beg", - "deleted_label", - "function_beg", - "eh_region_beg", - "eh_region_end", - "repeated_line_number", - "range_start", - "range_end", - "live", - "basic_block" - }; - - fprintf (fp, " %s", - XINT (tmp_rtx, 4) < 0 ? note_names[-XINT (tmp_rtx, 4)] : ""); + const char *name = ""; + if (NOTE_LINE_NUMBER (tmp_rtx) < 0) + name = GET_NOTE_INSN_NAME (NOTE_LINE_NUMBER (tmp_rtx)); + fprintf (fp, " %s", name); } else if (GET_RTX_CLASS (GET_CODE (tmp_rtx)) == 'i') print_rtl_single (fp, PATTERN (tmp_rtx)); |