aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-06-16 16:05:37 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-06-16 16:05:37 -0700
commit16865eaaa8898e0ea0e87e8516a17d5f95ab471b (patch)
treed2e24e13027b0a532fccf0e0efd510ee9f6110c9 /gcc/c-tree.h
parent17192884645f6c9e6135af2e691418734bdb6aac (diff)
downloadgcc-16865eaaa8898e0ea0e87e8516a17d5f95ab471b.zip
gcc-16865eaaa8898e0ea0e87e8516a17d5f95ab471b.tar.gz
gcc-16865eaaa8898e0ea0e87e8516a17d5f95ab471b.tar.bz2
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
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index b311bb3..031883e 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -256,12 +256,12 @@ extern tree c_convert_parm_for_inlining (tree, tree, tree, int);
extern int c_types_compatible_p (tree, tree);
extern tree c_begin_compound_stmt (bool);
extern tree c_end_compound_stmt (tree, bool);
-extern void c_expand_start_cond (tree, int, tree);
+extern tree c_begin_if_stmt (void);
+extern void c_finish_if_cond (tree, int, int);
extern void c_finish_then (tree);
-extern void c_expand_start_else (void);
+extern void c_begin_else (int);
extern void c_finish_else (tree);
-extern void c_expand_end_cond (void);
-extern tree c_begin_if_stmt (void);
+extern void c_finish_if_stmt (int);
extern tree c_begin_while_stmt (void);
extern void c_finish_while_stmt_cond (tree, tree);
extern void c_finish_while_stmt (tree, tree);