This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]