diff options
author | Jason Merrill <jason@redhat.com> | 2003-07-24 16:48:13 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2003-07-24 16:48:13 -0400 |
commit | de7df9ebdc66ea3a978327f5a039d939a9523a72 (patch) | |
tree | d426fb98d29071f56b15614831aba8bebbb69f6c /gcc/c-semantics.c | |
parent | 6907ddd3babc97c39c88ef55b7d8da4f5d439d56 (diff) | |
download | gcc-de7df9ebdc66ea3a978327f5a039d939a9523a72.tar.gz |
tree.h (boolean_type_node): Move from C/C++/Java frontends.
* tree.h (boolean_type_node): Move from C/C++/Java frontends.
(boolean_true_node, boolean_false_node): Likewise.
(enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
* tree.c (build_common_tree_nodes): Init boolean_type_node.
(build_common_tree_nodes_2): Init boolean_{true,false}_node.
* stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
* c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
(truthvalue_true_node): Renamed from boolean_true_node.
(truthvalue_false_node): Renamed from boolean_false_node.
* c-decl.c: Just set truthvalue_* to integer_*.
* c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
* cp/decl.c: Just set truthvalue_* to boolean_*.
* java/java-tree.h: Move boolean_type_node et al to the back end.
From-SVN: r69758
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r-- | gcc/c-semantics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index 933ed50f27f..cbffbe09411 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -668,7 +668,7 @@ genrtl_switch_stmt (tree t) if (cond == error_mark_node) /* The code is in error, but we don't want expand_end_case to crash. */ - cond = boolean_false_node; + cond = truthvalue_false_node; emit_line_note (input_location); expand_start_case (1, cond, TREE_TYPE (cond), "switch statement"); |