https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86724

            Bug ID: 86724
           Summary: Compilation error with new isl 0.20 (missing includes)
           Product: gcc
           Version: 8.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rainer.jung at kippdata dot de
  Target Milestone: ---

Compilation of 8.2.0 breaks in gcc/graphite-isl-ast-to-gimple.c

.../graphite-isl-ast-to-gimple.c:83:7: error: 'isl_id_free' was not declared in
this scope
.../graphite-isl-ast-to-gimple.c:262:3: error: 'isl_id_free' was not declared
in this scope
.../graphite-isl-ast-to-gimple.c:598:5: error: 'isl_id_free' was not declared
in this scope
.../graphite-isl-ast-to-gimple.c:638:53: error: 'isl_id_get_user' was not
declared in this scope
.../graphite-isl-ast-to-gimple.c:641:7: error: 'isl_id_free' was not declared
in this scope
.../graphite-isl-ast-to-gimple.c:802:31: error: 'isl_id_get_user' was not
declared in this scope
.../graphite-isl-ast-to-gimple.c:808:3: error: 'isl_id_free' was not declared
in this scope
.../graphite-isl-ast-to-gimple.c:1367:19: error: 'isl_space_dim' was not
declared in this scope
.../graphite-isl-ast-to-gimple.c:1371:3: error: 'isl_space_free' was not
declared in this scope
.../graphite-isl-ast-to-gimple.c:1372:16: error: 'isl_id_alloc' was not
declared in this scope

In isl 0.19, other isl header files already included by gcc/graphite.h included
the isl header file id.h and space.h. In 0.20 this is no longer the case.

Proposed patch:

--- .../gcc/graphite.h 2018-01-03 11:03:58.000000000 +0000
+++ .../gcc/graphite.h 2018-07-29 17:42:55.836121000 +0000
@@ -37,6 +37,8 @@
 #include <isl/schedule.h>
 #include <isl/ast_build.h>
 #include <isl/schedule_node.h>
+#include <isl/id.h>
+#include <isl/space.h>

 typedef struct poly_dr *poly_dr_p;

Regards,

Rainer

Reply via email to