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 middle-end/49991] New: gimple check: expected gimple_phi(error_mark), have gimple_assign(max_expr) in gimple_phi_arg


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

           Summary: gimple check: expected gimple_phi(error_mark), have
                    gimple_assign(max_expr) in gimple_phi_arg
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: d.g.gorbachev@gmail.com
            Target: i686-pc-linux-gnu


Compile with `-O3 -march=pentium4':

char f(char *s)
{
  char c = 0;
  int i;

  for (i = 0; i < 16; i++) {
    if (s[i * 3 + 0] > c)
      c = s[i * 3 + 0];
    if (s[i * 3 + 1] > c)
      c = s[i * 3 + 1];
    if (s[i * 3 + 2] > c)
      c = s[i * 3 + 2];
  }

  return c;
}


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