From d6be0d7f2d0a6ca4cd75c7d303fb5b51f79f7ee6 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 17 Nov 2004 14:10:00 -0700 Subject: 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 --- gcc/tree.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'gcc/tree.h') 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)) -- cgit v1.1