From 4d776011993936d5e17421abe228b856f8e5e748 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Mon, 23 Nov 2015 09:23:59 -0500 Subject: Correct graphite*.c ISL header file inclusion order. * system.h: Don't poison calloc and strdup if USES_ISL is defined. * graphite-dependences.c: Define USES_ISL. Include ISL header files after GCC header files and before graphite header files. * graphite-dependences.c: Same. * graphite-isl-ast-to-gimple.c: Same. * graphite-optimize-isl.c: Same. * graphite-poly.c: Same. * graphite-scop-detection.c: Same. * graphite-sese-to-poly.c: Same. * graphite.c: Same. From-SVN: r230759 --- gcc/graphite-optimize-isl.c | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'gcc/graphite-optimize-isl.c') diff --git a/gcc/graphite-optimize-isl.c b/gcc/graphite-optimize-isl.c index c09264b..6ae224f 100644 --- a/gcc/graphite-optimize-isl.c +++ b/gcc/graphite-optimize-isl.c @@ -18,11 +18,25 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#define USES_ISL + #include "config.h" #ifdef HAVE_isl -/* Workaround for GMP 5.1.3 bug, see PR56019. */ -#include + +#include "system.h" +#include "coretypes.h" +#include "backend.h" +#include "cfghooks.h" +#include "tree.h" +#include "gimple.h" +#include "fold-const.h" +#include "gimple-iterator.h" +#include "tree-ssa-loop.h" +#include "cfgloop.h" +#include "tree-data-ref.h" +#include "params.h" +#include "dumpfile.h" #include #include @@ -38,20 +52,7 @@ along with GCC; see the file COPYING3. If not see #include #endif -#include "system.h" -#include "coretypes.h" -#include "backend.h" -#include "cfghooks.h" -#include "tree.h" -#include "gimple.h" -#include "fold-const.h" -#include "gimple-iterator.h" -#include "tree-ssa-loop.h" -#include "cfgloop.h" -#include "tree-data-ref.h" #include "graphite-poly.h" -#include "params.h" -#include "dumpfile.h" #ifdef HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS -- cgit v1.1