Hi, This patch fixes a build issue on sparc64-freebsd targets, all platforms that could run on SPARC should include this header in order to avoid errors from memmodel being used in sparc-protos.h.
Bootstrapped on x86_64-freebsd12 and committed to mainline. Regards Iain --- 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" -- 2.27.0