aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2016-06-13 18:10:35 +0200
committerThomas Schwinge <tschwinge@gcc.gnu.org>2016-06-13 18:10:35 +0200
commit1a0c3c346646689030e485cef0f71bd64515fc1f (patch)
tree76eaf7126ca9d4cbb1a5b19feec5dd3c132a8b2d
parent10d2fc232412cda3b71b48b705440b828d6c80f5 (diff)
downloadgcc-1a0c3c346646689030e485cef0f71bd64515fc1f.zip
gcc-1a0c3c346646689030e485cef0f71bd64515fc1f.tar.gz
gcc-1a0c3c346646689030e485cef0f71bd64515fc1f.tar.bz2
Fix CASE_CHAIN typos
gcc/ * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo. * tree.def (CASE_LABEL_EXPR): Likewise. From-SVN: r237384
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-cfg.c2
-rw-r--r--gcc/tree.def2
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c2f0f7e..733e512 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
+
+ * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
+ * tree.def (CASE_LABEL_EXPR): Likewise.
+
2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
* input.c (test_builtins): Fix an assertion.
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 40e524b..0fac49c 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -1126,7 +1126,7 @@ make_cond_expr_edges (basic_block bb)
/* Called for each element in the hash table (P) as we delete the
edge to cases hash table.
- Clear all the TREE_CHAINs to prevent problems with copying of
+ Clear all the CASE_CHAINs to prevent problems with copying of
SWITCH_EXPRs and structure sharing rules, then free the hash table
element. */
diff --git a/gcc/tree.def b/gcc/tree.def
index d16575a..2c35540 100644
--- a/gcc/tree.def
+++ b/gcc/tree.def
@@ -949,7 +949,7 @@ DEFTREECODE (SWITCH_EXPR, "switch_expr", tcc_statement, 3)
Operand 1 is CASE_HIGH. If it is NULL_TREE, the label is a simple
(one-value) case label. If it is non-NULL_TREE, the case is a range.
Operand 2 is CASE_LABEL, which is is the corresponding LABEL_DECL.
- Operand 4 is CASE_CHAIN. This operand is only used in tree-cfg.c to
+ Operand 3 is CASE_CHAIN. This operand is only used in tree-cfg.c to
speed up the lookup of case labels which use a particular edge in
the control flow graph. */
DEFTREECODE (CASE_LABEL_EXPR, "case_label_expr", tcc_statement, 4)