[freebsd] d: Fix build failures on sparc64-*-freebsd*
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 21 Mar 2021 16:51:39 +0000 (17:51 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Fri, 26 Mar 2021 15:14:12 +0000 (16:14 +0100)
All target platforms that could run on SPARC should include this header
in order to avoid errors from memmodel being used in sparc-protos.h.

gcc/ChangeLog:

* config/freebsd-d.c: Include memmodel.h.

gcc/config/freebsd-d.c

index 425ca83..8a8ddd9 100644 (file)
@@ -18,6 +18,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
+#include "memmodel.h"
 #include "tm.h"
 #include "tm_p.h"
 #include "d/d-target.h"