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 bootstrap/69352] [6 Regression] profiledbootstrap failure with --with-build-config=bootstrap-lto


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69352

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reproduces with -O1 on x86_64-linux too.  Slightly cleaned up testcase:
int a[10][14], b, c, d, e, f, g, h, i;
void bar (void);
int
foo (int x)
{
  unsigned j;
  int k = 0, l;
  int m;
  if (h)
    m = 12;
  else
    m = 13;
  if (a[x][m])
    l = (long) foo;
  a[x][i] = l;
  while (c)
    {
      if (b)
        {
          if (f)
            k = 1;
          bar ();
        }
      for (; d;)
        j++;
    }
  while (c)
    {
      if (a[x][12])
        {
          if (g)
            k = 1;
          j++;
        }
      c = e;
    }
  return k;
}

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