(pushcase_range): [try to] properly apply previous patch of empty range test.
authorDoug Evans <dje@gnu.org>
Sat, 26 Apr 1997 05:14:45 +0000 (05:14 +0000)
committerDoug Evans <dje@gnu.org>
Sat, 26 Apr 1997 05:14:45 +0000 (05:14 +0000)
From-SVN: r13985

gcc/stmt.c

index 01747b049554400657e120cbd27195ab04c1ba61..945d98cabb13044eb4db1f5c141af034f8ad5148 100644 (file)
@@ -4410,10 +4410,6 @@ pushcase (value, converter, label, duplicate)
   if (! (case_stack && case_stack->data.case_stmt.start))
     return 1;
 
-  /* Fail if the range is empty.  */
-  if (tree_int_cst_lt (value2, value1))
-    return 4;
-
   if (stack_block_stack
       && stack_block_stack->depth > case_stack->depth)
     return 5;
@@ -4494,6 +4490,10 @@ pushcase_range (value1, value2, converter, label, duplicate)
   if (! (case_stack && case_stack->data.case_stmt.start))
     return 1;
 
+  /* Fail if the range is empty.  */
+  if (tree_int_cst_lt (value2, value1))
+    return 4;
+
   if (stack_block_stack
       && stack_block_stack->depth > case_stack->depth)
     return 5;