Commit 71bde1f3 by Richard Stallman

(write_tree): For type SPLIT, check subroutine return

values for non-zero value not positive value.

From-SVN: r2523
parent d3c738e1
......@@ -1521,7 +1521,10 @@ write_tree (tree, prevpos, afterward, initial, type)
{
printf (" tem = %s_%d (x0, insn%s);\n",
name_prefix, tree->subroutine_number, call_suffix);
printf (" if (tem >= 0) return tem;\n");
if (type == SPLIT)
printf (" if (tem != 0) return tem;\n");
else
printf (" if (tem >= 0) return tem;\n");
change_state (tree->position, afterward->position, 2);
printf (" goto L%d;\n", afterward->number);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment