diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-11-28 09:43:32 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-11-28 09:43:32 +0100 |
commit | 9e851845f6bcd7c13f3d42c13cd2f1c0e87f68cc (patch) | |
tree | 64d90923bdd9deb69efa042cc7ae54b08df598bf /gcc/tree-pretty-print.c | |
parent | 11c1e63c90eb3540da0b7524a2d7571916102dfe (diff) | |
download | gcc-9e851845f6bcd7c13f3d42c13cd2f1c0e87f68cc.zip gcc-9e851845f6bcd7c13f3d42c13cd2f1c0e87f68cc.tar.gz gcc-9e851845f6bcd7c13f3d42c13cd2f1c0e87f68cc.tar.bz2 |
tree.def (SWITCH_EXPR): Change from 3 operand to 2 operand tree.
* tree.def (SWITCH_EXPR): Change from 3 operand to 2 operand tree.
Adjust comment.
* tree.h (SWITCH_LABELS): Remove.
* gimplify.c (gimplify_switch_expr): Don't test SWITCH_LABELS,
assert SWITCH_BODY is non-NULL.
* tree-pretty-print.c (dump_generic_node): Remove SWITCH_LABELS
handling.
* tree.c (block_may_fallthru): Always return true; for SWITCH_EXPR.
c/
* c-typeck.c (c_start_case): Build SWITCH_EXPR using build2 instead
of build3.
cp/
* cp-gimplify.c (genericize_switch_stmt): Build SWITCH_EXPR using
build2_loc instead of build3_loc.
ada/
* gcc-interface/trans.c (Case_Statement_to_gnu): Build SWITCH_EXPR
using build2 instead of build3.
jit/
* jit-playback.c (add_switch): Build SWITCH_EXPR using build2 instead
of build3. Formatting fixes. Adjust funciton comment.
fortran/
* trans-decl.c (gfc_trans_entry_master_switch): Build SWITCH_EXPR
using fold_build2_loc instead of fold_build3_loc.
* trans-io.c (io_result): Likewise.
* trans-stmt.c (gfc_trans_integer_select, gfc_trans_character_select):
Likewise.
go/
* go-gcc.cc (Gcc_backend::switch_statement): Build SWITCH_EXPR using
build2_loc instead of build3_loc.
brig/
* brigfrontend/brig-branch-inst-handler.cc
(brig_branch_inst_handler::operator): Build SWITCH_EXPR using build2
instead of build3.
From-SVN: r255192
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r-- | gcc/tree-pretty-print.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index c9a3e63..1cdec69 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -2686,26 +2686,6 @@ dump_generic_node (pretty_printer *pp, tree node, int spc, dump_flags_t flags, dump_generic_node (pp, SWITCH_BODY (node), spc+4, flags, true); } - else - { - tree vec = SWITCH_LABELS (node); - size_t i, n = TREE_VEC_LENGTH (vec); - for (i = 0; i < n; ++i) - { - tree elt = TREE_VEC_ELT (vec, i); - newline_and_indent (pp, spc+4); - if (elt) - { - dump_generic_node (pp, elt, spc+4, flags, false); - pp_string (pp, " goto "); - dump_generic_node (pp, CASE_LABEL (elt), spc+4, - flags, true); - pp_semicolon (pp); - } - else - pp_string (pp, "case ???: goto ???;"); - } - } newline_and_indent (pp, spc+2); pp_right_brace (pp); } |