lto-streamer.h: Include gimple.h for LAST_AND_UNUSED_GIMPLE_CODE.
diff mbox

Message ID 1460825956-12529-1-git-send-email-raj.khem@gmail.com
State New
Headers show

Commit Message

Khem Raj April 16, 2016, 4:59 p.m. UTC
gcc/:
2016-04-16  Khem Raj  <raj.khem@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,

---
 gcc/lto-streamer.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Richard Biener April 18, 2016, 9:03 a.m. UTC | #1
On Sat, Apr 16, 2016 at 6:59 PM, Khem Raj <raj.khem@gmail.com> wrote:
> gcc/:
> 2016-04-16  Khem Raj  <raj.khem@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
>

Patch
diff mbox

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