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 rtl-optimization/78911] [5/6/7 Regression] Infinite loop at -O2/O3 optimization levels while trying to compile server.c from Wine-2.0-rc2


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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Testcase for likely the same bug, at least hang starts at r221983.

-fPIC -O2 -m32 -march=i686 -fno-omit-frame-pointer rh1406093.i

long long *a, *b, c;
int d, e;
int baz (void);

static inline long long
foo (long long *x)
{
  return __sync_val_compare_and_swap (x, 0, 0);
}

void
bar ()
{
  int f = baz ();
  c = foo (&a[f]);
  if (c)
    e = d;
  a = b;
}

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