[Bug tree-optimization/60115] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu

su at cs dot ucdavis.edu gcc-bugzilla@gcc.gnu.org
Sat Feb 8 16:13:00 GMT 2014


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

--- Comment #3 from Zhendong Su <su at cs dot ucdavis.edu> ---
(In reply to Jakub Jelinek from comment #2)
> I have to use something like:
> int a, b[1];
> 
> int
> main ()
> {
> lbl:
>   for (; a; a--)
>     if (b[10000000])
>       goto lbl;
> 
>   return 0;
> }
> 
> to actually successfully reproduce it.  Anyway, started with r204458.

Thanks Jakub. That's interesting. It reproduces for me as small as 450 for the
array index.



More information about the Gcc-bugs mailing list