This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] opts-global.c: Include gimple.h for LAST_AND_UNUSED_GIMPLE_CODE.
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Khem Raj <raj dot khem at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 21 Apr 2016 12:13:58 +0200
- Subject: Re: [PATCH] opts-global.c: Include gimple.h for LAST_AND_UNUSED_GIMPLE_CODE.
- Authentication-results: sourceware.org; auth=none
- References: <1461205403-27885-1-git-send-email-raj dot khem at gmail dot com>
On Thu, Apr 21, 2016 at 4:23 AM, Khem Raj <raj.khem@gmail.com> wrote:
> gcc/:
> 2016-04-16 Khem Raj <raj.khem@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
>