]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
bootstrap: Include memmodel.h in btfout.c and ctfout.c before tm_p.h
authorJoseph Myers <joseph@codesourcery.com>
Tue, 29 Jun 2021 15:10:17 +0000 (15:10 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 29 Jun 2021 15:10:17 +0000 (15:10 +0000)
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
gcc/ctfout.c

index 2316dea5f27697d71546d3443cf0cdfcb5fda071..e58c969825afcd999912c5bca7ae453a8b53808d 100644 (file)
@@ -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"
index 71d7a62e6ef3a146265b81bfa8ecdf280fe0644a..682d8529a58e66b5f8680c580e388606614a1643 100644 (file)
@@ -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"