* gcc-plugin/include/starpu-gcc/tasks.h: Add comment about <starpu.h> inclusion. * gcc-plugin/src/warn-unregistered.c: Include <starpu.h>.
@@ -20,6 +20,10 @@
#include <starpu-gcc/config.h>
+/* Note: Users of this file must first include <starpu.h>, but we don't do
+ that here because it has to be done very early, to avoid the dreaded "use
+ of poisoned malloc" in xmmintrin.h. */
+
#include <starpu-gcc/utils.h>
@@ -19,6 +19,10 @@
+/* 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 <plugin-version.h>