diff --git a/gcc/gimple-harden-control-flow.cc b/gcc/gimple-harden-control-flow.cc
index 5c28fd07f3329e78dc4db13e13d153f4e4740e9c..1b345dab766c471910b847a2b2ea57e7bc5e8784 100644
--- a/gcc/gimple-harden-control-flow.cc
+++ b/gcc/gimple-harden-control-flow.cc
@@ -23,6 +23,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "system.h"
 #include "coretypes.h"
 #include "backend.h"
+#include "tm_p.h"
 #include "tree.h"
 #include "fold-const.h"
 #include "gimple.h"