From 149c8c7c27a17a2941d07e2f76b1e1c823e2fa80 Mon Sep 17 00:00:00 2001
From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date: Thu, 21 May 2020 17:02:18 +0200
Subject: [PATCH] Include memmodel.h in adjust-alignment.c

Commit dfa4fcdba374ed44d4aa1a22b2738f3f5c5b37af 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.

2020-05-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	gcc/
	* adjust-alignment.c: Include memmodel.h.
---
 gcc/ChangeLog          | 4 ++++
 gcc/adjust-alignment.c | 1 +
 2 files changed, 5 insertions(+)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 977e7664b62e..1d01682dc94f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2020-05-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+	* adjust-alignment.c: Include memmodel.h.
+
 2020-05-21  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR target/95260
diff --git a/gcc/adjust-alignment.c b/gcc/adjust-alignment.c
index 40cfd1889280..9b797386bf83 100644
--- a/gcc/adjust-alignment.c
+++ b/gcc/adjust-alignment.c
@@ -25,6 +25,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "target.h"
 #include "tree.h"
 #include "tree-pass.h"
+#include "memmodel.h"
 #include "tm_p.h"
 
 namespace {
-- 
GitLab