diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-04-14 20:28:54 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-04-14 20:28:54 +0000 |
commit | 7bbc47e8ba5d9198398f09a7f420014e7961c0a0 (patch) | |
tree | 30c3f0597f0621506978887d289120c8b4def75a /gcc/graph.c | |
parent | bf32fa1eddb12eee5dd911b59c9612c94a68b2d7 (diff) | |
download | gcc-7bbc47e8ba5d9198398f09a7f420014e7961c0a0.tar.gz |
1999-04-14 23:26 -0400 Zack Weinberg <zack@rabi.columbia.edu>
* graph.c (node_data): Return void. Ignore result of
print_rtl_single. Change caller to match.
* integrate.c (subst_constants): Initialize op0_mode to an
invalid mode, and abort before use if it's still invalid.
(Can only happen if the RTX_CLASS, RTX_FORMAT tables are corrupted.)
* objc/objc-act.c (get_objc_string_decl,
build_selector_translation_table, generate_protocol_list,
synth_id_with_class_suffix, build_keyword_selector,
build_selector_expr, gen_declarator): Abort when the tree
structure is corrupted.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26463 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graph.c')
-rw-r--r-- | gcc/graph.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/gcc/graph.c b/gcc/graph.c index 95149449964..f586314bb31 100644 --- a/gcc/graph.c +++ b/gcc/graph.c @@ -94,12 +94,11 @@ label: \"basic block %d", } } -static int +static void node_data (fp, tmp_rtx) FILE *fp; rtx tmp_rtx; { - int result; if (PREV_INSN (tmp_rtx) == 0) { @@ -168,9 +167,9 @@ darkgrey\n shape: ellipse" : "white", XINT (tmp_rtx, 4) < 0 ? note_names[-XINT (tmp_rtx, 4)] : ""); } else if (GET_RTX_CLASS (GET_CODE (tmp_rtx)) == 'i') - result = print_rtl_single (fp, PATTERN (tmp_rtx)); + print_rtl_single (fp, PATTERN (tmp_rtx)); else - result = print_rtl_single (fp, tmp_rtx); + print_rtl_single (fp, tmp_rtx); switch (graph_dump_format) { @@ -180,8 +179,6 @@ darkgrey\n shape: ellipse" : "white", case no_graph: break; } - - return result; } static void @@ -316,7 +313,6 @@ print_rtl_graph_with_bb (base, suffix, rtx_first) for (tmp_rtx = NEXT_INSN (rtx_first); NULL != tmp_rtx; tmp_rtx = NEXT_INSN (tmp_rtx)) { - int did_output; int edge_printed = 0; rtx next_insn; @@ -339,7 +335,7 @@ print_rtl_graph_with_bb (base, suffix, rtx_first) } /* Print the data for this node. */ - did_output = node_data (fp, tmp_rtx); + node_data (fp, tmp_rtx); next_insn = next_nonnote_insn (tmp_rtx); if ((i = end[INSN_UID (tmp_rtx)]) >= 0) |