[PATCH] XCore target: add support to build MultiSource/Benchmarks/MallocBench/gs

robert lytton robert at xmos.com
Thu Feb 13 11:35:34 PST 2014


add missing defines: 'UINTPTR_MAX' and 'PATH_MAX'

http://llvm-reviews.chandlerc.com/D2779

Files:
  MultiSource/Benchmarks/MallocBench/gs/iscan.c
  MultiSource/Benchmarks/MallocBench/gs/zfile.c

Index: MultiSource/Benchmarks/MallocBench/gs/iscan.c
===================================================================
--- MultiSource/Benchmarks/MallocBench/gs/iscan.c
+++ MultiSource/Benchmarks/MallocBench/gs/iscan.c
@@ -32,6 +32,10 @@
 #include "scanchar.h"
 #include <stdint.h>
 
+#ifdef __XS1B__
+#define UINTPTR_MAX   UINT32_MAX
+#endif
+
 /* Array packing flag */
 int array_packing;
 
Index: MultiSource/Benchmarks/MallocBench/gs/zfile.c
===================================================================
--- MultiSource/Benchmarks/MallocBench/gs/zfile.c
+++ MultiSource/Benchmarks/MallocBench/gs/zfile.c
@@ -32,6 +32,10 @@
 #include "gxdevice.h"
 #include "gxdevmem.h"
 
+#ifdef __XS1B__
+#define PATH_MAX 4096
+#endif
+
 /* Forward references */
 int zreadline_from(P4(byte *, uint, uint *, stream *));
 int lib_file_open(P3(byte *, uint, ref *));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2779.1.patch
Type: text/x-patch
Size: 861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140213/5fb56d6a/attachment.bin>


More information about the llvm-commits mailing list