diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 802e759b4eb13ef5c3a11f5ee52f309a0ed08137..72e8e2b317f8237383ec99907b1ed2e562742f5a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
 2017-10-29  Jim Wilson  <wilson@tuliptree.org>
 
+	* gimplify.c: Include tm_p.h.
+
 	* common.opt (gcoff): Re-add as ignored option.
 	(gcoff1, gcoff2, gcoff3): Likewise.
 
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 4c245103fc49fd2c80b9e36d82fe9b7f4545d485..edcc0013ed2aae575330fa4511abab04df199140 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -27,6 +27,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "target.h"
 #include "rtl.h"
 #include "tree.h"
+#include "tm_p.h"
 #include "gimple.h"
 #include "gimple-predict.h"
 #include "tree-pass.h"		/* FIXME: only for PROP_gimple_any */