Message ID | 1509328976.2561.16.camel@tuliptree.org |
---|---|
State | New |
Headers | show |
Series | fix cygwin builds | expand |
This broke ia64: In file included from ./tm_p.h:4:0, from ../../gcc/gimplify.c:30: ../../gcc/config/ia64/ia64-protos.h:49:13: error: use of enum 'memmodel' without previous declaration enum memmodel); ^ Andreas.
On Mon, 2017-10-30 at 08:07 +0100, Andreas Schwab wrote: > This broke ia64: > > In file included from ./tm_p.h:4:0, > from ../../gcc/gimplify.c:30: > ../../gcc/config/ia64/ia64-protos.h:49:13: error: use of enum > 'memmodel' without previous declaration > enum memmodel); > ^ Looks like alpha, sparc, and tilegx have the same problem. Fixed by including memmodel.h before tm_p.h. Tested with quick x86_64-linux C only bootstrap, and checked in under the obvious rule. Jim 2017-10-30 Jim Wilson <wilson@tuliptree.org> gcc/ * gimplify.c: Include memmodel.h. Index: gcc/gimplify.c =================================================================== --- gcc/gimplify.c (revision 254222) +++ gcc/gimplify.c (working copy) @@ -27,6 +27,7 @@ along with GCC; see the file COPYING3. If not see #include "target.h" #include "rtl.h" #include "tree.h" +#include "memmodel.h" #include "tm_p.h" #include "gimple.h" #include "gimple-predict.h"
gcc/ * gimplify.c: Include tm_p.h. Index: gcc/gimplify.c =================================================================== --- gcc/gimplify.c (revision 254206) +++ gcc/gimplify.c (working copy) @@ -27,6 +27,7 @@ #include "target.h" #include "rtl.h" #include "tree.h" +#include "tm_p.h" #include "gimple.h" #include "gimple-predict.h" #include "tree-pass.h" /* FIXME: only for PROP_gimple_any */