Undeclared variable in tree-vectorizer.c

Andrew Pinski pinskia@physics.uc.edu
Fri Oct 15 03:22:00 GMT 2004


On Oct 14, 2004, at 4:56 PM, Diego Novillo wrote:

> Folks,
>
> One of your recent changes to tree-vectorizer.c introduced this
> bootstrap failure.  Please fix.
>
> tree-vectorizer.c: In function 'vect_transform_loop':
> tree-vectorizer.c:3244: error: 'vectorization_factor' undeclared 
> (first use in this function)
> tree-vectorizer.c:3244: error: (Each undeclared identifier is reported 
> only once
> tree-vectorizer.c:3244: error: for each function it appears in.)

Note this only happens with --disable-checking.
#ifdef ENABLE_CHECKING
   int vectorization_factor = LOOP_VINFO_VECT_FACTOR (loop_vinfo);
#endif
...

   if (LOOP_VINFO_NITERS_KNOWN_P (loop_vinfo)
       && (LOOP_VINFO_INT_NITERS (loop_vinfo) % vectorization_factor != 
0))
     vect_transform_for_unknown_loop_bound (loop_vinfo, &ratio, loops);
...

Note the use that is not wrapped with #ifdef ENABLE_CHECKING.
The fix would be get rid of the wrapper around vectorization_factor.

Thanks,
Andrew Pinski



More information about the Gcc mailing list