Example #1
0
void
genrtl_if_stmt (tree t)
{
    tree cond;
    genrtl_do_pushlevel ();
    cond = expand_cond (IF_COND (t));
    emit_line_note (input_location);
    expand_start_cond (cond, 0);
    if (THEN_CLAUSE (t))
    {
        tree nextt = THEN_CLAUSE (t);

        if (cond && integer_zerop (cond))
            nextt = expand_unreachable_stmt (nextt, warn_notreached);
        expand_stmt (nextt);
    }

    if (ELSE_CLAUSE (t))
    {
        tree nextt = ELSE_CLAUSE (t);
        expand_start_else ();
        if (cond && integer_nonzerop (cond))
            nextt = expand_unreachable_stmt (nextt, warn_notreached);
        expand_stmt (nextt);
    }
    expand_end_cond ();
}
Example #2
0
void 
tree_code_if_else (unsigned char* filename, int lineno)
{
  emit_line_note ((const char *)filename, lineno); /* Output the line number information.  */
  expand_start_else ();
}