public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/17913] [4.0/4.1 Regression] ICE jumping into statement expression Date: Wed, 30 Mar 2005 19:59:00 -0000 [thread overview] Message-ID: <20050330195930.20282.qmail@sourceware.org> (raw) In-Reply-To: <20041009192304.17913.jsm28@gcc.gnu.org> ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-30 19:59 ------- Subject: Bug 17913 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-4_0-branch Changes by: jsm28@gcc.gnu.org 2005-03-30 19:59:21 Modified files: gcc : ChangeLog c-decl.c c-tree.h c-typeck.c gcc/doc : extend.texi gcc/objc : ChangeLog objc-act.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/gcc.dg: stmt-expr-label-1.c stmt-expr-label-2.c stmt-expr-label-3.c Removed files: gcc/testsuite/gcc.c-torture/execute: medce-2.c Log message: PR c/772 PR c/17913 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR, C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct c_label_context, label_context_stack): New. * c-decl.c (define_label): Check for jumps into statement expressions. Add label to list of defined labels. (start_function): Push context on label_context_stack. (finish_function): Pop context from label_context_stack. * c-typeck.c (label_context_stack): New. (c_finish_goto_label): Check for jumps into statement expressions. Add label to list of jumped to labels. (struct c_switch): Add blocked_stmt_expr. (c_start_case): Initialize it. (do_case): Check it. (c_finish_case): Verify !blocked_stmt_expr. (c_begin_stmt_expr): Push context on label_context_stack. Increment blocked_stmt_expr. Mark labels jumped to from outside as undefinable. (c_finish_stmt_expr): December blocked_stmt_expr. Mark labels defined in the statement expression and no longer jumpable to. Mark labels jumped to from just outside the statement expression as again definable. Pop context from label_context_stack. * doc/extend.texi (Statement Exprs): Update. objc: * objc-act.c (objc_start_function): Push context on label_context_stack. testsuite: * gcc.dg/stmt-expr-label-1.c, gcc.dg/stmt-expr-label-2.c, gcc.dg/stmt-expr-label-3.c : New tests. * gcc.c-torture/execute/medce-2.c: Remove. 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.97&r2=2.7592.2.98 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.3&r2=1.630.6.4 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.1&r2=1.193.4.2 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&r2=1.419.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/extend.texi.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.240.2.5&r2=1.240.2.6 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&r2=1.29.8.1 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&r2=1.266.6.1 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.80&r2=1.5084.2.81 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/medce-2.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1&r2=NONE http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/stmt-expr-label-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/stmt-expr-label-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/stmt-expr-label-3.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=17913
next prev parent reply other threads:[~2005-03-30 19:59 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-10-09 19:23 [Bug c/17913] New: " jsm28 at gcc dot gnu dot org 2004-10-09 20:18 ` [Bug c/17913] [4.0 Regression] " pinskia at gcc dot gnu dot org 2004-10-14 3:47 ` pinskia at gcc dot gnu dot org 2004-10-15 14:12 ` pinskia at gcc dot gnu dot org 2004-10-15 14:21 ` pinskia at gcc dot gnu dot org 2004-10-27 12:25 ` steven at gcc dot gnu dot org 2004-10-27 12:42 ` steven at gcc dot gnu dot org 2004-10-27 12:55 ` jsm at polyomino dot org dot uk 2004-10-28 6:42 ` loki at inf dot u-szeged dot hu 2004-10-28 13:30 ` bonzini at gcc dot gnu dot org 2004-10-28 15:05 ` jsm at polyomino dot org dot uk 2004-11-03 8:17 ` loki at inf dot u-szeged dot hu 2005-01-20 4:15 ` pinskia at gcc dot gnu dot org 2005-03-24 18:22 ` [Bug c/17913] [4.0/4.1 " mmitchel at gcc dot gnu dot org 2005-03-24 20:35 ` joseph at codesourcery dot com 2005-03-30 18:08 ` jsm28 at gcc dot gnu dot org 2005-03-30 19:56 ` cvs-commit at gcc dot gnu dot org 2005-03-30 19:59 ` cvs-commit at gcc dot gnu dot org [this message] 2005-04-17 3:51 ` mmitchel at gcc dot gnu dot org 2005-05-10 13:47 ` cvs-commit at gcc dot gnu dot org 2005-05-10 13:50 ` loki at gcc dot gnu dot org 2005-07-06 16:48 ` [Bug c/17913] [4.0 " mmitchel at gcc dot gnu dot org 2005-09-09 10:41 ` [Bug c++/17913] " rguenth at gcc dot gnu dot org 2005-09-27 16:15 ` mmitchel at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20050330195930.20282.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).