aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorDavid Edelsohn <dje@gcc.gnu.org>2015-11-23 09:23:59 -0500
committerDavid Edelsohn <dje@gcc.gnu.org>2015-11-23 09:23:59 -0500
commit4d776011993936d5e17421abe228b856f8e5e748 (patch)
tree8b552b61a1b1ac6b4ce298f12409fda5177e3c16 /gcc/system.h
parent546e500c8f90f9adf4187d07f8e6d33d82194f3c (diff)
downloadgcc-4d776011993936d5e17421abe228b856f8e5e748.zip
gcc-4d776011993936d5e17421abe228b856f8e5e748.tar.gz
gcc-4d776011993936d5e17421abe228b856f8e5e748.tar.bz2
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
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h3
1 files changed, 3 insertions, 0 deletions
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