aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2004-11-17 14:10:00 -0700
committerJeff Law <law@gcc.gnu.org>2004-11-17 14:10:00 -0700
commitd6be0d7f2d0a6ca4cd75c7d303fb5b51f79f7ee6 (patch)
treeda3118a0605edeaeaf002f07f16b80921e72497e /gcc/tree.h
parent730bddf26ca4e5222b4130535b6bc705943f5d8b (diff)
downloadgcc-d6be0d7f2d0a6ca4cd75c7d303fb5b51f79f7ee6.zip
gcc-d6be0d7f2d0a6ca4cd75c7d303fb5b51f79f7ee6.tar.gz
gcc-d6be0d7f2d0a6ca4cd75c7d303fb5b51f79f7ee6.tar.bz2
tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
* tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader. (edge_to_cases_elt): Renamed from edge_to_case_leader. (edge_to_cases_hash): Renamed from edge_to_case_leader_hash. (edge_to_cases_eq): Renamed from edge_to_case_leader_eq. (edge_to_cases_cleanup, recording_case_labels_p): New functions. (get_cases_for_edge): New function. (start_recording_case_labels, end_recording_case_labels): Similarly. (record_switch_edge): Don't muck with the CASE_LABEL. Instead chain equivalent CASE_LABEL_EXPRs together. (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill. (make_switch_expr_edges): Do not record edge/cases here. (cleanup_tree_cfg): Record cases around the call to thread_jumps. (split_critical_edges): Record cases around the edge splitting code. (cleanup_dead_labels): Use CASE_LABEL again. (tree_redirect_edge_and_branch): If we have a mapping from edge to cases, use it to handle redirections. Else do it the slow way. * tree.h (CASE_LEADER_OR_LABEL): Kill. (CASE_LABEL): Revert to just looking at the tree's second operand. * tree.c (get_case_label): Kill. From-SVN: r90817
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index a8670d9..83dd4ca 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -1231,15 +1231,7 @@ struct tree_vec GTY(())
of a case label, respectively. */
#define CASE_LOW(NODE) TREE_OPERAND ((NODE), 0)
#define CASE_HIGH(NODE) TREE_OPERAND ((NODE), 1)
-
-/* Operand 2 has two uses, it may either be a LABEL_DECL node or a
- another CASE_LABEL_EXPR node. This accessor gets direct access
- to that operand. Use it when you want to assign a value to
- operand 2 or when you want to conditionalize actions based on
- whether operand 2 is a LABEL_DECL or CASE_LABEL_EXPR. */
-#define CASE_LEADER_OR_LABEL(NODE) TREE_OPERAND ((NODE), 2)
-
-#define CASE_LABEL(NODE) get_case_label (NODE)
+#define CASE_LABEL(NODE) TREE_OPERAND ((NODE), 2)
/* The operands of a BIND_EXPR. */
#define BIND_EXPR_VARS(NODE) (TREE_OPERAND (BIND_EXPR_CHECK (NODE), 0))