public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: sayle@gcc.gnu.org To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: c/10175 Date: Thu, 17 Apr 2003 01:26:00 -0000 [thread overview] Message-ID: <20030417012601.31943.qmail@sources.redhat.com> (raw) The following reply was made to PR c/10175; it has been noted by GNATS. From: sayle@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: c/10175 Date: 17 Apr 2003 01:22:51 -0000 CVSROOT: /cvs/gcc Module name: gcc Changes by: sayle@gcc.gnu.org 2003-04-17 01:22:51 Modified files: gcc : ChangeLog c-semantics.c Makefile.in gcc/testsuite : ChangeLog Added files: gcc/testsuite/gcc.dg: Wunreachable-5.c gcc/testsuite/gcc.c-torture/execute: medce-1.c medce-2.c Log message: 2003-04-16 Roger Sayle <roger@eyesopen.com> * c-semantics.c (find_reachable_label): New function to find a potentially reachable label in an expression. (expand_unreachable_if_stmt): Similar to expand_if_stmt but assumes the start of the IF_STMT is unreachable (dead) code. (expand_unreachable_stmt): Similar to expand_stmt but assumes the start of the statement list is unreachable (dead) code. (genrtl_if_stmt): If the controlling expression of the IF is constant, use expand_unreachable_stmt for the THEN or ELSE clause as appropriate. (genrtl_switch_stmt): Use expand_unreachable_stmt to expand the body of a SWITCH statement. (expand_stmt): The code immediately following a "return", "break", "continue" or "goto" is unreachable. * Makefile.in (c-semantics.o): Depend upon tree-inline.h. * gcc.dg/Wunreachable-5.c: New test case for PR c/10175. * gcc.c-torture/execute/medce-1.c: New test case. * gcc.c-torture/execute/medce-2.c: New test case. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=1.17475&r2=1.17476 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-semantics.c.diff?cvsroot=gcc&r1=1.53&r2=1.54 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&r1=1.1034&r2=1.1035 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.2598&r2=1.2599 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/Wunreachable-5.c.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/medce-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/medce-2.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
next reply other threads:[~2003-04-17 1:26 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-04-17 1:26 sayle [this message] -- strict thread matches above, loose matches on Subject: below -- 2003-04-04 1:26 c/10175 jason 2003-04-04 1:26 c/10175 jason 2003-04-04 1:26 c/10175 jason 2003-04-04 1:26 c/10175 jason
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=20030417012601.31943.qmail@sources.redhat.com \ --to=sayle@gcc.gnu.org \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).