Pārlūkot izejas kodu

gcc: Include <starpu.h> first.

* gcc-plugin/src/opencl.c, gcc-plugin/src/tasks.c,
  gcc-plugin/src/utils.c: Include <starpu.h> first.
Ludovic Courtès 12 gadi atpakaļ
vecāks
revīzija
211a0fe08e
3 mainītis faili ar 12 papildinājumiem un 4 dzēšanām
  1. 4 2
      gcc-plugin/src/opencl.c
  2. 4 1
      gcc-plugin/src/tasks.c
  3. 4 1
      gcc-plugin/src/utils.c

+ 4 - 2
gcc-plugin/src/opencl.c

@@ -16,6 +16,10 @@
 
 
 #include <starpu-gcc/config.h>
 #include <starpu-gcc/config.h>
 
 
+/* We must include starpu.h here, otherwise gcc will complain about a poisoned
+   malloc in xmmintrin.h.  */
+#include <starpu.h>
+
 #include <gcc-plugin.h>
 #include <gcc-plugin.h>
 #include <plugin-version.h>
 #include <plugin-version.h>
 #include <plugin.h>
 #include <plugin.h>
@@ -36,8 +40,6 @@
 #include <unistd.h>
 #include <unistd.h>
 #include <sys/mman.h>
 #include <sys/mman.h>
 
 
-#include <starpu.h>
-
 #include <starpu-gcc/utils.h>
 #include <starpu-gcc/utils.h>
 #include <starpu-gcc/tasks.h>
 #include <starpu-gcc/tasks.h>
 
 

+ 4 - 1
gcc-plugin/src/tasks.c

@@ -16,6 +16,10 @@
 
 
 #include <starpu-gcc/config.h>
 #include <starpu-gcc/config.h>
 
 
+/* We must include starpu.h here, otherwise gcc will complain about a poisoned
+   malloc in xmmintrin.h.  */
+#include <starpu.h>
+
 #include <gcc-plugin.h>
 #include <gcc-plugin.h>
 #include <plugin-version.h>
 #include <plugin-version.h>
 
 
@@ -36,7 +40,6 @@
 #include <starpu-gcc/tasks.h>
 #include <starpu-gcc/tasks.h>
 #include <starpu-gcc/utils.h>
 #include <starpu-gcc/utils.h>
 #include <starpu-gcc/opencl.h>
 #include <starpu-gcc/opencl.h>
-#include <starpu.h>
 
 
 
 
 /* Task-related functions.  */
 /* Task-related functions.  */

+ 4 - 1
gcc-plugin/src/utils.c

@@ -16,6 +16,10 @@
 
 
 #include <starpu-gcc/config.h>
 #include <starpu-gcc/config.h>
 
 
+/* We must include starpu.h here, otherwise gcc will complain about a poisoned
+   malloc in xmmintrin.h.  */
+#include <starpu.h>
+
 #include <gcc-plugin.h>
 #include <gcc-plugin.h>
 #include <plugin-version.h>
 #include <plugin-version.h>
 
 
@@ -32,7 +36,6 @@
 #endif
 #endif
 
 
 #include <starpu-gcc/utils.h>
 #include <starpu-gcc/utils.h>
-#include <starpu.h>
 
 
 /* Whether to enable verbose output.  */
 /* Whether to enable verbose output.  */
 bool verbose_output_p = false;
 bool verbose_output_p = false;