This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Undeclared variable in tree-vectorizer.c
- From: Dorit Naishlos <DORIT at il dot ibm dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: Diego Novillo <dnovillo at redhat dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, Ira Rosen <irar at il dot ibm dot com>, Olga Golovanevsky <olga at il dot ibm dot com>
- Date: Fri, 15 Oct 2004 14:58:39 +0200
- Subject: Re: Undeclared variable in tree-vectorizer.c
thanks for committing the fix!
dorit
|---------+---------------------------->
| | Andrew Pinski |
| | <pinskia@physics.|
| | uc.edu> |
| | Sent by: |
| | gcc-owner@gcc.gnu|
| | .org |
| | |
| | |
| | 10/14/2004 11:00 |
| | PM |
|---------+---------------------------->
>----------------------------------------------------------------------------------------------------------------------------|
| |
| To: Diego Novillo <dnovillo@redhat.com> |
| cc: Olga Golovanevsky/Haifa/IBM@IBMIL, Ira Rosen/Haifa/IBM@IBMIL, dorit@il.bim.com, "gcc@gcc.gnu.org" |
| <gcc@gcc.gnu.org> |
| Subject: Re: Undeclared variable in tree-vectorizer.c |
>----------------------------------------------------------------------------------------------------------------------------|
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