summaryrefslogtreecommitdiff
path: root/gcc/c-semantics.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-22 16:05:50 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-22 16:05:50 +0000
commitb395981200fe14ef6559f9e7db23facc741b9a27 (patch)
tree3ceef8f64aea9018834921fbee81b129d34e66aa /gcc/c-semantics.c
parente0c6233d8e8fcc439ae2f00b776ca96d784b9aa0 (diff)
downloadgcc-b395981200fe14ef6559f9e7db23facc741b9a27.tar.gz
* c-semantics.c (genrtl_compound_stmt): Only check nesting consistency if
this COMPOUND_STMT is scoped. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49077 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r--gcc/c-semantics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c
index 682943f17c2..eb5af2a76ae 100644
--- a/gcc/c-semantics.c
+++ b/gcc/c-semantics.c
@@ -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
}