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/system.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/system.h') diff --git a/gcc/system.h b/gcc/system.h index ed3de9f..498596f 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -798,9 +798,12 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; compiling gcc, so that the autoconf declaration tests for malloc etc don't spuriously fail. */ #ifdef IN_GCC + +#ifndef USES_ISL #undef calloc #undef strdup #pragma GCC poison calloc strdup +#endif #if !defined(FLEX_SCANNER) && !defined(YYBISON) #undef malloc -- cgit v1.1