On Tue, 2014-02-04 at 23:07 +0000, Iyer, Balaji V wrote: > > > -----Original Message----- > > From: Jakub Jelinek [mailto:ja...@redhat.com] > > Sent: Tuesday, February 4, 2014 5:36 PM > > To: Iyer, Balaji V > > Cc: gcc@gcc.gnu.org > > Subject: Re: question about gtype-desc.c > > > > On Tue, Feb 04, 2014 at 10:26:20PM +0000, Iyer, Balaji V wrote: > > > > > gtype-desc.c:8176: error: âstruct gimple_omp_for_iterâ has no > > > > > member named âloop_countâ > > > > > gtype-desc.c:8178: error: âstruct gimple_omp_for_iterâ has no > > > > > member named âgrainâ > > > > > > > > > > These files are in the build directory. I deleted everything and > > > > > reconfigured > > > > but the error reappears. [...] > > What you did should be more than enough. But then, I didn't see > > loop_count nor grain fields of gimple_omp_for_iter in your previously > > posted patches (only your ChangeLog mentioned it). So, if you start with > > wiping up the build directory, I think you have to grep where the fields > > appear. > > > > OK. Found the issue. I had the 2 fields enclosed inside a #if 0 and #endif > > I guess whatever that is reading the fields to create gtype-desc.c does not > understand C/C++ pre-processing, and thus it didn't ignore the fields in > between #if 0. [...]
Yes. gengtype, the utility creating gtype-desc.c, does not care about the C++ preprocessing. Ideally, I believe it should, but that is hard work. -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***