c-parse.in (if_stmt_locus): Remove.
authorRichard Henderson <rth@redhat.com>
Wed, 16 Jun 2004 23:05:37 +0000 (16:05 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 16 Jun 2004 23:05:37 +0000 (16:05 -0700)
commit16865eaaa8898e0ea0e87e8516a17d5f95ab471b
treed2e24e13027b0a532fccf0e0efd510ee9f6110c9
parent17192884645f6c9e6135af2e691418734bdb6aac
c-parse.in (if_stmt_locus): Remove.

        * c-parse.in (if_stmt_locus): Remove.
        (if_prefix): Increment stmt_count; pass it to c_finish_if_cond.
        (select_or_iter_stmt): Move empty if warnings to c-typeck.c.
        * c-typeck.c (if_elt): Sort by expected size.  Rename locus to
        empty_locus.  Add stmt_count, saw_else.
        (c_begin_if_stmt): Push if_stack here.
        (c_finish_if_cond): Rename from c_expand_end_cond.  Record stmt_count.
        (c_finish_then, c_finish_else): Record empty_locus.
        (c_begin_else): Rename from c_expand_start_else.  Record stmt_count.
        (c_finish_if_stmt): Rename from c_expand_end_cond.  Warn for empty
        if or else body.
        * c-tree.h: Update prototypes.
testsuite/
        * gcc.dg/20001116-1.c: Move expected warning line.

From-SVN: r83274
gcc/ChangeLog
gcc/c-parse.in
gcc/c-tree.h
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20001116-1.c