[Bug tree-optimization/39455] [4.3/4.4 Regression] ICE : in compare_values_warnv, at tree-vrp.c:1073

pinskia at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 16 08:29:00 GMT 2009



------- Comment #8 from pinskia at gmail dot com  2009-03-16 08:28 -------
Subject: Re:  [4.3/4.4 Regression] ICE : in compare_values_warnv, at
tree-vrp.c:1073



Sent from my iPhone

On Mar 16, 2009, at 1:15 AM, "jakub at gcc dot gnu dot org"
<gcc-bugzilla@gcc.gnu.org 
 > wrote:

>
>
> ------- Comment #7 from jakub at gcc dot gnu dot org  2009-03-16  
> 08:15 -------
> Reduced testcase:
>
> /* { dg-do compile } */
> /* { dg-options "-O2 -fprefetch-loop-arrays" } */
>
> void
> foo (char *x, unsigned long y, unsigned char *z)
> {
>  unsigned int c[256], *d;
>
>  for (d = c + 1; d < c + 256; ++d)
>    *d += d[-1];
>  x[--c[z[y]]] = 0;

Hmm. Could this be the char-- bug? Where the front-end/gimplifier does  
not promote that to int?

Thanks,
Andrew Pinski

>
> }
>
>
> -- 
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39455
>


-- 


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



More information about the Gcc-bugs mailing list