diff --git a/gcc/gimple-harden-control-flow.cc b/gcc/gimple-harden-control-flow.cc
index 1b345dab766c471910b847a2b2ea57e7bc5e8784..441df5ac21c65f4c9d9c0ecc0aa5c6b07177a4cc 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 "memmodel.h"
 #include "tm_p.h"
 #include "tree.h"
 #include "fold-const.h"