c-typeck.c (c_begin_vm_scope): Fix file_scope processing.

* c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
testsuite:
	* gcc.dg/vla-7.c: Add.

From-SVN: r114530
This commit is contained in:
Mike Stump 2006-06-10 00:14:03 +00:00 committed by Mike Stump
parent d8bc9819d9
commit 71d0c1008f
4 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-06-09 Mike Stump <mrs@apple.com>
* c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
2006-06-09 David Daney <ddaney@avtrex.com>
* doc/install.texi: Add binutils version recommendation for mips-*-*.

View File

@ -7550,6 +7550,11 @@ c_begin_vm_scope (unsigned int scope)
struct c_label_list *glist;
gcc_assert (scope > 0);
/* At file_scope, we don't have to do any processing. */
if (label_context_stack_vm == NULL)
return;
if (c_switch_stack && !c_switch_stack->blocked_vm)
c_switch_stack->blocked_vm = scope;
for (glist = label_context_stack_vm->labels_used;

View File

@ -1,3 +1,7 @@
2006-06-09 Mike Stump <mrs@apple.com>
* gcc.dg/vla-7.c: Add.
2006-06-10 Paul Thomas <pault@gcc.gnu.org>
PR fortran/24558

View File

@ -0,0 +1,3 @@
/* { dg-options "-std=c99" } */
int (*foo)(int (*a)[*]);