From: Richard Kenner Date: Sat, 20 Apr 1996 12:27:33 +0000 (-0400) Subject: Revert to 1.140. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b059139cfa7b992bccdaac439853f8e1b4422f7d;p=gcc.git Revert to 1.140. From-SVN: r11856 --- diff --git a/gcc/stmt.c b/gcc/stmt.c index 253d3b30d40..cf37bb7888d 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -4871,10 +4871,6 @@ expand_end_case (orig_index) /* An ERROR_MARK occurs for various reasons including invalid data type. */ if (index_type != error_mark_node) { - if (thiscase->data.case_stmt.case_list) - thiscase->data.case_stmt.case_list - = case_tree2list (thiscase->data.case_stmt.case_list, 0); - /* If switch expression was an enumerated type, check that all enumeration literals are covered by the cases. No sense trying this if there's a default case, however. */ @@ -4912,6 +4908,10 @@ expand_end_case (orig_index) before_case = get_last_insn (); + if (thiscase->data.case_stmt.case_list) + thiscase->data.case_stmt.case_list + = case_tree2list(thiscase->data.case_stmt.case_list, 0); + /* Simplify the case-list before we count it. */ group_case_nodes (thiscase->data.case_stmt.case_list);