From 74ed3fc27966b07d701e1dead1cc37b53af227b4 Mon Sep 17 00:00:00 2001 From: Iain Buclaw Date: Sun, 21 Mar 2021 17:51:39 +0100 Subject: [PATCH] [freebsd] d: Fix build failures on sparc64-*-freebsd* 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/config/freebsd-d.c b/gcc/config/freebsd-d.c index 425ca8365ba..8a8ddd92884 100644 --- a/gcc/config/freebsd-d.c +++ b/gcc/config/freebsd-d.c @@ -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"