aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2002-01-04 11:42:56 -0700
committerJeff Law <law@gcc.gnu.org>2002-01-04 11:42:56 -0700
commitc1e14513edf89b72b98db061aae226be5f14c17a (patch)
tree8720096cbd63038754878a0595c00744ebf6abdf /gcc/c-common.h
parent3b007b5d6bcefa3c87a920e834a7b1d0a34f38e5 (diff)
downloadgcc-c1e14513edf89b72b98db061aae226be5f14c17a.zip
gcc-c1e14513edf89b72b98db061aae226be5f14c17a.tar.gz
gcc-c1e14513edf89b72b98db061aae226be5f14c17a.tar.bz2
c-common.c (c_expand_start_cond): Expect the IF_STMT node to be passed in, do not build it.
* c-common.c (c_expand_start_cond): Expect the IF_STMT node to be passed in, do not build it. (c_begin_if_stmt): New function. (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise. * c-common.h (c_expand_start_cond): Update prototype. (c_begin_if_stmt): Prototype new function. (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise. * c-parse.in (if_prefix): Use c_begin_if_stmt, c_begin_while_stmt and c_finish_while_stmt_cond. From-SVN: r48539
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 4c49b9f..296c9af 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -337,6 +337,10 @@ extern void expand_stmt PARAMS ((tree));
extern void mark_stmt_tree PARAMS ((void *));
extern void shadow_warning PARAMS ((const char *,
tree, tree));
+extern tree c_begin_if_stmt PARAMS ((void));
+extern tree c_begin_while_stmt PARAMS ((void));
+extern void c_finish_while_stmt_cond PARAMS ((tree, tree));
+
/* Extra information associated with a DECL. Other C dialects extend
this structure in various ways. The C front-end only uses this
@@ -505,7 +509,7 @@ extern tree c_alignof_expr PARAMS ((tree));
NOP_EXPR is used as a special case (see truthvalue_conversion). */
extern void binary_op_error PARAMS ((enum tree_code));
extern tree c_expand_expr_stmt PARAMS ((tree));
-extern void c_expand_start_cond PARAMS ((tree, int));
+extern void c_expand_start_cond PARAMS ((tree, int, tree));
extern void c_finish_then PARAMS ((void));
extern void c_expand_start_else PARAMS ((void));
extern void c_finish_else PARAMS ((void));