------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-22 
12:59 -------
Subject: Bug 12913

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-4_0-branch
Changes by:     [EMAIL PROTECTED]       2005-04-22 12:58:43

Modified files:
        gcc            : ChangeLog c-decl.c c-tree.h c-typeck.c 
        gcc/objc       : ChangeLog objc-act.c 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/gcc.dg: c99-vla-jump-1.c c99-vla-jump-2.c 
                              c99-vla-jump-3.c c99-vla-jump-4.c 
                              c99-vla-jump-5.c 

Log message:
        PR c/12913
        * c-tree.h (struct c_label_list): Update comment.
        (struct c_label_context): Rename to struct c_label_context_se.
        (label_context_stack): Rename to label_context_stack_se.
        (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
        c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
        c_end_vm_scope): New.
        (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
        * c-decl.c (pop_scope): Call c_end_vm_scope.
        (pushdecl): Call c_begin_vm_scope for variably modified
        declarations.
        (define_label): Check for jumping into scope of identifier with
        variably modified type.  Push label on stack for those defined at
        current context of identifiers with variably modified type.
        (start_function): Create stack level for context of identifiers
        with variably modified type.
        (finish_function): Pop stack level for context of identifiers with
        variably modified type.
        * c-typeck.c (label_context_stack): Rename to
        label_context_stack_se.
        (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
        (c_finish_goto_label): Check for jumping into scope of identifier
        with variably modified type.  Push label on stack for those jumped
        to from current context of identifiers with variably modified
        type.
        (struct c_switch): Add blocked_vm.
        (c_start_case): Initialize blocked_vm.
        (do_case): Check blocked_vm.
        (c_finish_case): Add comment.
        (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
        variable label_context_stack.
        
        objc:
        * objc-act.c (objc_start_function): Create stack level for context
        of identifiers with variably modified type.
        
        testsuite:
        * gcc.dg/c99-vla-jump-1.c, gcc.dg/c99-vla-jump-2.c,
        gcc.dg/c99-vla-jump-3.c, gcc.dg/c99-vla-jump-4.c,
        gcc.dg/c99-vla-jump-5.c: New tests.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.175&r2=2.7592.2.176
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.630.6.6&r2=1.630.6.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.193.4.2&r2=1.193.4.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.419.2.1&r2=1.419.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.29.8.2&r2=1.29.8.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/objc-act.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.266.6.1&r2=1.266.6.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.131&r2=1.5084.2.132
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/c99-vla-jump-1.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/c99-vla-jump-2.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/c99-vla-jump-3.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/c99-vla-jump-4.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/c99-vla-jump-5.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12913

Reply via email to