This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/23326] [4.0 Regression] Wrong code from forwprop


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]