aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2021-06-29 15:10:17 +0000
committerJoseph Myers <joseph@codesourcery.com>2021-06-29 15:10:17 +0000
commit7d510b21194e0c3150c4b6256c92efef7b1e373e (patch)
tree77de77f7064a844b4b78086d1bc54063c658953c
parentaf9987e817f54806a18e45c5615b9a95b690e537 (diff)
downloadgcc-7d510b21194e0c3150c4b6256c92efef7b1e373e.zip
gcc-7d510b21194e0c3150c4b6256c92efef7b1e373e.tar.gz
gcc-7d510b21194e0c3150c4b6256c92efef7b1e373e.tar.bz2
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".
-rw-r--r--gcc/btfout.c1
-rw-r--r--gcc/ctfout.c1
2 files changed, 2 insertions, 0 deletions
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"
diff --git a/gcc/ctfout.c b/gcc/ctfout.c
index 71d7a62..682d852 100644
--- a/gcc/ctfout.c
+++ b/gcc/ctfout.c
@@ -21,6 +21,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"