This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23326] [4.0 Regression] Wrong code from forwprop
- From: "belyshev at depni dot sinp dot msu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2005 18:05:04 -0000
- Subject: [Bug tree-optimization/23326] [4.0 Regression] Wrong code from forwprop
- References: <20050811152012.23326.rguenth@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-08-11 18:05 -------
// self-contained C++ testcase, compile with -O2
extern "C" void abort (void);
int j;
void foo (bool x, bool y)
{
if (!x)
j = 0;
if (!x == y)
j = 1;
}
int main (void)
{
foo (1, 1);
if (j)
abort ();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23326