diff mbox series

fix cygwin builds

Message ID 1509328976.2561.16.camel@tuliptree.org
State New
Headers show
Series fix cygwin builds | expand

Commit Message

Jim Wilson Oct. 30, 2017, 2:02 a.m. UTC
Cygwin builds were accidentally broken by the patch for PR
sanitize/82517.  This added uses of MAX_SUPPORTED_STACK_ALIGNMENT,
which for cygwin expands to a call to ix86_cfun_abi(), and hence we
need an include of tm_p.h which is currently missing.

Tested with a cygwin default languages bootstrap.

Checked in under the obvious rule.

Jim

Comments

Andreas Schwab Oct. 30, 2017, 7:07 a.m. UTC | #1
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.
Jim Wilson Oct. 30, 2017, 3:41 p.m. UTC | #2
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"
diff mbox series

Patch

	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 */