On Sat, Apr 16, 2016 at 6:59 PM, Khem Raj <raj.k...@gmail.com> wrote: > gcc/: > 2016-04-16 Khem Raj <raj.k...@gmail.com> > > * lto-streamer.h: Include gimple.h for LAST_AND_UNUSED_GIMPLE_CODE. > > > Fixes build errors e.g. > > | > ../../../../../../../work-shared/gcc-6.0.0-r0/git/gcc/lto-streamer.h:159:34: > error: 'LAST_AND_UNUSED_GIMPLE_CODE' was not declared in this scope > | LTO_bb0 = 1 + MAX_TREE_CODES + LAST_AND_UNUSED_GIMPLE_CODE,
You should have included gimple.h before lto-streamer.h in the file you included it. Richard. > --- > gcc/lto-streamer.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h > index f391161..489801b 100644 > --- a/gcc/lto-streamer.h > +++ b/gcc/lto-streamer.h > @@ -26,6 +26,7 @@ along with GCC; see the file COPYING3. If not see > #include "plugin-api.h" > #include "gcov-io.h" > #include "diagnostic.h" > +#include "gimple.h" > > /* Define when debugging the LTO streamer. This causes the writer > to output the numeric value for the memory address of the tree node > -- > 2.8.0 >