]> gcc.gnu.org Git - gcc.git/commitdiff
Include memmodel.h in adjust-alignment.c
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 21 May 2020 15:02:18 +0000 (17:02 +0200)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 21 May 2020 15:02:18 +0000 (17:02 +0200)
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
gcc/adjust-alignment.c

index 977e7664b62e882337f9fe8b641aaa5da129278f..1d01682dc94fb01ef9b8e78411edf5a4ae5d133c 100644 (file)
@@ -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
index 40cfd1889280ef2421c160bed80ff3e5fc445322..9b797386bf831f80a4a9e3e34b44986f8bba9131 100644 (file)
@@ -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 {
This page took 0.073509 seconds and 5 git commands to generate.