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