From 7d510b21194e0c3150c4b6256c92efef7b1e373e Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 29 Jun 2021 15:10:17 +0000 Subject: bootstrap: Include memmodel.h in btfout.c and ctfout.c before tm_p.h This fixes a "use of enum 'memmodel' without previous declaration" error in sparc-protos.h. Minimally tested that this fixes the build-many-glibcs.py compilers build for sparc64-linux-gnu. * btfout.c, ctfout.c: Include "memmodel.h". --- gcc/btfout.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/btfout.c') diff --git a/gcc/btfout.c b/gcc/btfout.c index 2316dea..e58c969 100644 --- a/gcc/btfout.c +++ b/gcc/btfout.c @@ -26,6 +26,7 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" #include "target.h" +#include "memmodel.h" #include "tm_p.h" #include "output.h" #include "dwarf2asm.h" -- cgit v1.1