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/24028] CCP is broken


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-23 05:25 -------
Confirmed, here is a better testcase which shows the issue:
int
foo (int a)
{
  int b;
  int c;


  b = 0;
  if (b)
    c = a;
  else
    c = 9;
  c++;

  if (c != 10)
     __builtin_abort();

  return c;
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dberlin at gcc dot gnu dot
                   |                            |org, dnovillo at gcc dot gnu
                   |                            |dot org
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-09-23 05:25:25
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24028


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