c-semantics.c (genrtl_compound_stmt): Only check nesting consistency if this COMPOUND...
authorJason Merrill <jason@redhat.com>
Tue, 22 Jan 2002 16:05:50 +0000 (11:05 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 22 Jan 2002 16:05:50 +0000 (11:05 -0500)
        * c-semantics.c (genrtl_compound_stmt): Only check nesting consistency if
        this COMPOUND_STMT is scoped.

From-SVN: r49077

gcc/ChangeLog
gcc/c-semantics.c

index db51fc63dd5996099ee7c5f30852aa51ddc630ef..18cbc6437cceef796238db988a5913d31ba50ffa 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-22  Jason Merrill  <jason@redhat.com>
+
+       * c-semantics.c (genrtl_compound_stmt): Only check nesting
+       consistency if this COMPOUND_STMT is scoped.
+
 2002-01-22  Kazu Hirata  <kazu@hxi.com>
 
        * predict.c: Fix formatting.
index 682943f17c29f957e2f65b9dd912b4d2b21e3923..eb5af2a76ae14448b0ab7254434386519726b59c 100644 (file)
@@ -700,7 +700,7 @@ genrtl_compound_stmt (t)
 
 #ifdef ENABLE_CHECKING
   /* Make sure that we've pushed and popped the same number of levels.  */
-  if (n != current_nesting_level ())
+  if (!COMPOUND_STMT_NO_SCOPE (t) && n != current_nesting_level ())
     abort ();
 #endif
 }