This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Mar 2017 07:32:13 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-78911-4@http.gcc.gnu.org/bugzilla/>
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;
}