This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18046] Missed jump threading optimization
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2004 12:52:48 -0000
- Subject: [Bug tree-optimization/18046] Missed jump threading optimization
- References: <20041018121604.18046.steven@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-18 12:52 -------
Confirmed. To summarize what the code should look like:
extern void foo (void);
extern int i;
void
bar (void)
{
switch (i)
{
case 0:
foo ();
break;
default:
goto other_block;
}
switch (i)
{
case 0:
foo ();
break;
default:
other_block:
break;
}
}
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-10-18 12:52:47
date| |
Summary|Missed jump threading |Missed jump threading
|optimization |optimization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18046