This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17656] [4.0 Regression] internal compiler error: in replace_immediate_uses, at tree-ssa.c:1041
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Oct 2004 15:47:04 -0000
- Subject: [Bug tree-optimization/17656] [4.0 Regression] internal compiler error: in replace_immediate_uses, at tree-ssa.c:1041
- References: <20040924154216.17656.arjanv@redhat.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-10-11 15:47 -------
Here's a reduced testcase that fails with "-O" on i686-pc-linux-gnu:
================================================
int sprintf (char *s, const char *format, ...);
int foo(int i, int j)
{
char *buf, *str;
if (i)
str = "";
else if (j)
str = "";
else
return 1;
sprintf(buf, str);
return 0;
}
================================================
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |monitored
Last reconfirmed|0000-00-00 00:00:00 |2004-10-11 15:47:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17656