diff options
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 21b4cc6..01c89cd 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3495,9 +3495,6 @@ struct cp_switch label. We need a tree, rather than simply a hash table, because of the GNU case range extension. */ splay_tree cases; - /* Remember whether there was a case value that is outside the - range of the original type of the controlling expression. */ - bool outside_range_p; /* Remember whether a default: case label has been seen. */ bool has_default_p; /* Remember whether a BREAK_STMT has been seen in this SWITCH_STMT. */ @@ -3526,7 +3523,6 @@ push_switch (tree switch_stmt) p->next = switch_stack; p->switch_stmt = switch_stmt; p->cases = splay_tree_new (case_compare, NULL, NULL); - p->outside_range_p = false; p->has_default_p = false; p->break_stmt_seen_p = false; p->in_loop_body_p = false; @@ -3547,8 +3543,7 @@ pop_switch (void) if (!processing_template_decl) c_do_switch_warnings (cs->cases, switch_location, SWITCH_STMT_TYPE (cs->switch_stmt), - SWITCH_STMT_COND (cs->switch_stmt), - bool_cond_p, cs->outside_range_p); + SWITCH_STMT_COND (cs->switch_stmt), bool_cond_p); /* For the benefit of block_may_fallthru remember if the switch body case labels cover all possible values and if there are break; stmts. */ @@ -3663,9 +3658,7 @@ finish_case_label (location_t loc, tree low_value, tree high_value) low_value = case_conversion (type, low_value); high_value = case_conversion (type, high_value); - r = c_add_case_label (loc, switch_stack->cases, cond, type, - low_value, high_value, - &switch_stack->outside_range_p); + r = c_add_case_label (loc, switch_stack->cases, cond, low_value, high_value); /* After labels, make any new cleanups in the function go into their own new (temporary) binding contour. */ |