Revert to 1.140.
authorRichard Kenner <kenner@gcc.gnu.org>
Sat, 20 Apr 1996 12:27:33 +0000 (08:27 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 20 Apr 1996 12:27:33 +0000 (08:27 -0400)
From-SVN: r11856

gcc/stmt.c

index 253d3b30d40c1749f94b2c6a62b47a9e48210c5f..cf37bb7888ddaf0478e22636a40a644e0b1cdbaa 100644 (file)
@@ -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);