On Thu, Apr 21, 2016 at 4:23 AM, Khem Raj <raj.k...@gmail.com> wrote:
> gcc/:
> 2016-04-16  Khem Raj  <raj.k...@gmail.com>
>
>         * opts-global.c: 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,
> ---
>  gcc/opts-global.c | 1 +
>  1 file changed, 1 insertion(+)

I don't see build errors here.  How do you get them?

Richard.

> diff --git a/gcc/opts-global.c b/gcc/opts-global.c
> index 989ef3d..92fb9ac 100644
> --- a/gcc/opts-global.c
> +++ b/gcc/opts-global.c
> @@ -36,6 +36,7 @@ along with GCC; see the file COPYING3.  If not see
>  #include "plugin-api.h"
>  #include "ipa-ref.h"
>  #include "cgraph.h"
> +#include "gimple.h"
>  #include "lto-streamer.h"
>  #include "output.h"
>  #include "plugin.h"
> --
> 2.8.0
>

Reply via email to