[Bug tree-optimization/70160] [6 Regression] gcc ICE at -O2 (seg fault) and above on valid code on x86_64-linux-gnu

helloqirun at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Mar 9 22:04:00 GMT 2016


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

--- Comment #2 from Qirun Zhang <helloqirun at gmail dot com> ---
(In reply to Jakub Jelinek from comment #1)
> -msse2 is needed too.  Started with r228231.  Can't get rid of the
> uninitialized uses though:
> 
> long long a;
> void foo (void);
> void
> bar (unsigned t, int u, int v, unsigned p)
> {
>   long long x;
>   int i, j = 1;
>   for (t = i; j; )
>     {
>       a = x;
>       x = 1 + t;
>       j += u;
>       foo ();
>       if (x == 1)
>         return;
>     }
> }

In my original test case (not the test case in c#0), the ICE will disappear if
variable i is initialized.


More information about the Gcc-bugs mailing list