aboutsummaryrefslogtreecommitdiff
path: root/gcc/graph.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>1999-04-14 20:28:54 +0000
committerZack Weinberg <zack@gcc.gnu.org>1999-04-14 20:28:54 +0000
commita30d557c369edf926b0d1fa48e419dfdda86d523 (patch)
tree30c3f0597f0621506978887d289120c8b4def75a /gcc/graph.c
parentd20a4159c39d75bb573a6d524f6f06b4a35eac2e (diff)
downloadgcc-a30d557c369edf926b0d1fa48e419dfdda86d523.zip
gcc-a30d557c369edf926b0d1fa48e419dfdda86d523.tar.gz
gcc-a30d557c369edf926b0d1fa48e419dfdda86d523.tar.bz2
graph.c (node_data): Return void.
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. From-SVN: r26463
Diffstat (limited to 'gcc/graph.c')
-rw-r--r--gcc/graph.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/gcc/graph.c b/gcc/graph.c
index 9514944..f586314 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)