diff mbox series

[COMMITTED] Include memmodel.h in adjust-alignment.c

Message ID ydd1rnde3c9.fsf_-_@CeBiTec.Uni-Bielefeld.DE
State New
Headers show
Series [COMMITTED] Include memmodel.h in adjust-alignment.c | expand

Commit Message

Rainer Orth May 21, 2020, 3:04 p.m. UTC
Hi Kito,

> Tested and committed with fixes, thanks your review :)

this patch broke SPARC bootstrap:

In file included from ./tm_p.h:4,
                 from /vol/gcc/src/hg/master/local/gcc/adjust-alignment.c:28:
/vol/gcc/src/hg/master/local/gcc/config/sparc/sparc-protos.h:45:47: error: use of enum 'memmodel' without previous declaration
 extern void sparc_emit_membar_for_model (enum memmodel, int, int);
                                               ^~~~~~~~

Fixed by including memmodel.h.  Bootstrapped on sparc-sun-solaris2.11
and i386-pc-solaris2.11, installed as obvious.

	Rainer
diff mbox series

Patch

# HG changeset patch
# Parent  874f4dad97cc15024c5ed184a1b4e54daa37e69a
Include memmodel.h in adjust-alignment.c

diff --git a/gcc/adjust-alignment.c b/gcc/adjust-alignment.c
--- a/gcc/adjust-alignment.c
+++ b/gcc/adjust-alignment.c
@@ -25,6 +25,7 @@  along with GCC; see the file COPYING3.  
 #include "target.h"
 #include "tree.h"
 #include "tree-pass.h"
+#include "memmodel.h"
 #include "tm_p.h"
 
 namespace {