summaryrefslogtreecommitdiff
path: root/devel/intel-graphics-compiler/files/patch-alloca
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2019-12-07 17:31:44 +0000
committerJan Beich <jbeich@FreeBSD.org>2019-12-07 17:31:44 +0000
commite1a4a7c0e17237094522b9a0ef9e5a77d7c158aa (patch)
tree56541d432cd5abb5da9316ac4acef495ab059fd6 /devel/intel-graphics-compiler/files/patch-alloca
parent- Update to 1.4.1 (diff)
devel/compute-runtime: add new port
Tested by: clpeak, waifu2x-converter-cpp via drm-v4.9 on Skylake The Intel(R) Graphics Compute Runtime for OpenCL(TM) is an open source project to converge Intel's development efforts on OpenCL(TM) compute stacks supporting the GEN graphics hardware architecture. https://01.org/compute-runtime
Notes
Notes: svn path=/head/; revision=519222
Diffstat (limited to 'devel/intel-graphics-compiler/files/patch-alloca')
-rw-r--r--devel/intel-graphics-compiler/files/patch-alloca34
1 files changed, 34 insertions, 0 deletions
diff --git a/devel/intel-graphics-compiler/files/patch-alloca b/devel/intel-graphics-compiler/files/patch-alloca
new file mode 100644
index 000000000000..72d4a319a4b2
--- /dev/null
+++ b/devel/intel-graphics-compiler/files/patch-alloca
@@ -0,0 +1,34 @@
+<alloca.h> is implicitly included by <stdlib.h> on Linux
+
+In file included from visa/iga/IGAExe/assemble.cpp:27:
+In file included from visa/iga/IGAExe/iga_main.hpp:29:
+visa/iga/IGAExe/fatal.hpp:33:10: fatal error: 'alloca.h' file not found
+#include <alloca.h>
+ ^~~~~~~~~~
+
+visa/iga/IGALibrary/strings.cpp:41:10: fatal error: 'alloca.h' file not found
+#include <alloca.h> /* for alloca */
+ ^~~~~~~~~~
+
+--- visa/iga/IGAExe/fatal.hpp.orig 2019-11-27 01:05:20 UTC
++++ visa/iga/IGAExe/fatal.hpp
+@@ -30,7 +30,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ #include <Windows.h>
+ #include <malloc.h>
+ #else
+-#include <alloca.h>
++#include <stdlib.h>
+ #endif
+ #ifdef _MSC_VER
+ #define VSCPRINTF(PAT,VA) \
+--- visa/iga/IGALibrary/strings.cpp.orig 2019-11-27 01:05:20 UTC
++++ visa/iga/IGALibrary/strings.cpp
+@@ -38,7 +38,7 @@ using namespace iga;
+ #include <Windows.h>
+ #include <malloc.h> /* for alloca */
+ #else
+-#include <alloca.h> /* for alloca */
++#include <stdlib.h> /* for alloca */
+ #endif
+
+ std::string iga::format(const char *pat, ...)