[PATCH] opts-global.c: Include gimple.h for LAST_AND_UNUSED_GIMPLE_CODE.

Khem Raj raj.khem@gmail.com
Thu Apr 21 02:25:00 GMT 2016


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(+)

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



More information about the Gcc-patches mailing list