public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1904] bootstrap: Include memmodel.h in btfout.c and ctfout.c before tm_p.h
@ 2021-06-29 15:11 Joseph Myers
  0 siblings, 0 replies; only message in thread
From: Joseph Myers @ 2021-06-29 15:11 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7d510b21194e0c3150c4b6256c92efef7b1e373e

commit r12-1904-g7d510b21194e0c3150c4b6256c92efef7b1e373e
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Jun 29 15:10:17 2021 +0000

    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".

Diff:
---
 gcc/btfout.c | 1 +
 gcc/ctfout.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gcc/btfout.c b/gcc/btfout.c
index 2316dea5f27..e58c969825a 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 71d7a62e6ef..682d8529a58 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"


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-29 15:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 15:11 [gcc r12-1904] bootstrap: Include memmodel.h in btfout.c and ctfout.c before tm_p.h Joseph Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).