SPARC target header requires memmodel.h.

David

          * gimple-harden-control-flow.cc: Include memmodel.h.


*diff --git a/gcc/gimple-harden-control-flow.cc
b/gcc/gimple-harden-control-flow.cc*

*index 1b345dab766..441df5ac21c 100644*

*--- a/gcc/gimple-harden-control-flow.cc*

*+++ b/gcc/gimple-harden-control-flow.cc*

@@ -23,6 +23,7 @@ along with GCC; see the file COPYING3.  If not see

 #include "system.h"

 #include "coretypes.h"

 #include "backend.h"

+#include "memmodel.h"

 #include "tm_p.h"

 #include "tree.h"

 #include "fold-const.h"

On Fri, Oct 20, 2023 at 2:18 PM David Edelsohn <dje....@gmail.com> wrote:

> This patch broke bootstrap on AIX because ASM_GENERATE_INTERNAL_LABEL can
> embed target-specific functions.  Fixed by including tm_p.h.
>
> Thanks, David
>
>           * gimple-harden-control-flow.cc: Include tm_p.h.
>
>
> *diff --git a/gcc/gimple-harden-control-flow.cc
> b/gcc/gimple-harden-control-flow.cc*
>
> *index 5c28fd07f33..1b345dab766 100644*
>
> *--- a/gcc/gimple-harden-control-flow.cc*
>
> *+++ b/gcc/gimple-harden-control-flow.cc*
>
> @@ -23,6 +23,7 @@ along with GCC; see the file COPYING3.  If not see
>
>  #include "system.h"
>
>  #include "coretypes.h"
>
>  #include "backend.h"
>
> +#include "tm_p.h"
>
>  #include "tree.h"
>
>  #include "fold-const.h"
>
>  #include "gimple.h"
>

Reply via email to