Tue Aug 15 11:49:03 BST 2006  Andrew Wilkinson <[EMAIL PROTECTED]>
  * Fix some warnings.
New patches:

[Fix some warnings.
Andrew Wilkinson <[EMAIL PROTECTED]>**20060815104903] {
hunk ./build/ffih/fficonfig.h 41
-#undef HAVE_MEMCPY
+#define HAVE_MEMCPY 1
hunk ./build/ffih/fficonfig.h 65
-#undef HAVE_STDLIB_H
+#define HAVE_STDLIB_H 1
hunk ./build/ffih/fficonfig.h 115
-#undef STDC_HEADERS
+#define STDC_HEADERS 1
hunk ./src/runtime/BCKernel/builtin/Prelude.c 232
-  Int32 exp;
+  Int exp;
hunk ./src/runtime/BCKernel/heap.c 102
-    fprintf(stderr, "\tTried to get %ld words, after GC there were only %d available\n",size,
-                (Word*)G_hpEnd-G_hp);
+    fprintf(stderr, "\tTried to get %ld words, after GC there were only %ld available\n",size,
+                (long)((Word*)G_hpEnd-G_hp));
hunk ./src/runtime/BCKernel/main.c 172
-  Module* prelude;
+  //Module* prelude;
hunk ./src/runtime/BCKernel/profile.c 42
-	fprintf(stderr, "Time taken, %i\n\n", endTime - startTime);
+	fprintf(stderr, "Time taken, %li\n\n", endTime - startTime);
hunk ./src/runtime/BCKernel/profile.c 48
-			fprintf(stderr, "Instruction %i\t%i\t%i\n", i, Instructions[i].Times, Instructions[i].Duration);
+			fprintf(stderr, "Instruction %i\t%i\t%li\n", i, Instructions[i].Times, Instructions[i].Duration);
hunk ./src/runtime/BCKernel/sanity.c 41
-    fprintf(stderr, "sanity: sizeof(Word) = %d, sizeof(void*) = %d\n", sizeof(Word), sizeof(void*));
+    fprintf(stderr, "sanity: sizeof(Word) = %ld, sizeof(void*) = %ld\n", (unsigned long)sizeof(Word), (unsigned long)sizeof(void*));
hunk ./src/runtime/BCKernel/sanity.c 45
-    fprintf(stderr, "sanity: sizeof(Int) = %d, sizeof(void*) = %d\n", sizeof(Int), sizeof(void*));
+    fprintf(stderr, "sanity: sizeof(Int) = %ld, sizeof(void*) = %ld\n", (unsigned long)sizeof(Int), (unsigned long)sizeof(void*));
hunk ./src/runtime/BCKernel/sanity.c 50
-    fprintf(stderr, "sanity: sizeof(Word) = %d, WORD_BYTES = %d\n", sizeof(Word), WORD_BYTES);
+    fprintf(stderr, "sanity: sizeof(Word) = %ld, WORD_BYTES = %d\n", (unsigned long)sizeof(Word), WORD_BYTES);
hunk ./src/runtime/BCKernel/sanity.c 54
-    fprintf(stderr, "sanity: sizeof(Word) = %d, WORD_BITS = %d\n", sizeof(Word), WORD_BITS);
+    fprintf(stderr, "sanity: sizeof(Word) = %ld, WORD_BITS = %d\n", (unsigned long)sizeof(Word), WORD_BITS);
hunk ./src/runtime/BCKernel/sanity.c 63
-    fprintf(stderr, "sanity: wordsof(INode) = %d, sizeof(INode) = %d\n", wordsof(INode), sizeof(INode));
+    fprintf(stderr, "sanity: wordsof(INode) = %ld, sizeof(INode) = %ld\n", (unsigned long)wordsof(INode), (unsigned long)sizeof(INode));
hunk ./src/runtime/BCKernel/sanity.c 67
-    fprintf(stderr, "sanity: wordsof(FloatNode) = %d, sizeof(FloatNode) = %d\n",
-            wordsof(FloatNode), sizeof(FloatNode));
+    fprintf(stderr, "sanity: wordsof(FloatNode) = %ld, sizeof(FloatNode) = %ld\n",
+            (unsigned long)wordsof(FloatNode), (unsigned long)sizeof(FloatNode));
hunk ./src/runtime/BCKernel/sanity.c 72
-    fprintf(stderr, "sanity: wordsof(DoubleNode) = %d, sizeof(DoubleNode) = %d\n",
-            wordsof(DoubleNode), sizeof(DoubleNode));
+    fprintf(stderr, "sanity: wordsof(DoubleNode) = %ld, sizeof(DoubleNode) = %ld\n",
+            (unsigned long)wordsof(DoubleNode), (unsigned long)sizeof(DoubleNode));
hunk ./src/runtime/BCKernel/sanity.c 77
-    fprintf(stderr, "sanity: wordsof(IntegerNode) = %d, sizeof(IntegerNode) = %d\n", wordsof(IntegerNode),
-            sizeof(IntegerNode));
+    fprintf(stderr, "sanity: wordsof(IntegerNode) = %ld, sizeof(IntegerNode) = %ld\n", (unsigned long)wordsof(IntegerNode),
+            (unsigned long)sizeof(IntegerNode));
hunk ./src/runtime/BCKernel/sanity.c 92
-  printf("{%p[%d]:", p, HEAP_OFFS(p));
+  printf("{%p[%ld]:", p, (unsigned long)HEAP_OFFS(p));
hunk ./src/runtime/BCKernel/sanity.c 118
-    printf("sanity_ind: node %p is outside the heap! (%p[0] <-> %p[%d])\n", p, G_hpStart, G_hp, HEAP_OFFS(G_hp));
+    printf("sanity_ind: node %p is outside the heap! (%p[0] <-> %p[%ld])\n", p, G_hpStart, G_hp, (unsigned long)HEAP_OFFS(G_hp));
hunk ./src/runtime/BCKernel/sanity.c 127
-    printf("\tfollowed indirection from %p[%d]\n", p, HEAP_OFFS(p));
+    printf("\tfollowed indirection from %p[%ld]\n", p, (unsigned long)HEAP_OFFS(p));
hunk ./src/runtime/BCKernel/sanity.c 286
-      printf("\twhen linearly scanning the heap %p[%d]\n", p, HEAP_OFFS(p));
+      printf("\twhen linearly scanning the heap %p[%ld]\n", p, (unsigned long)HEAP_OFFS(p));
}

Context:

[Force types to be signed. Should fix bug on ppc linux where char is unsigned by default.
Andrew Wilkinson <[EMAIL PROTECTED]>**20060814105637] 
[Don't check /usr/local on Windows
Andrew Wilkinson <[EMAIL PROTECTED]>**20060814100019] 
[Add libffi build rule for MacOS X on x86
Andrew Wilkinson <[EMAIL PROTECTED]>**20060814083001] 
[Link against libraries on non Darwin operating systems on PPC
Andrew Wilkinson <[EMAIL PROTECTED]>**20060810111259] 
[Fix copy and paste error.
Andrew Wilkinson <[EMAIL PROTECTED]>**20060810084957] 
[Add support for linux on ppc.
Andrew Wilkinson <[EMAIL PROTECTED]>**20060809105016] 
[Actually make my last two patches work.
Andrew Wilkinson <[EMAIL PROTECTED]>**20060809093638] 
[Check /usr/local for headers and library files
Andrew Wilkinson <[EMAIL PROTECTED]>**20060808133931] 
[Fall back to Python if uname -o fails
Andrew Wilkinson <[EMAIL PROTECTED]>**20060808133902] 
[TAG 03_AUG_2006
Neil Mitchell**20060803135817] 
Patch bundle hash:
87a6710ccb9118cfa07f456cdf7b1ba1197a5bb9
_______________________________________________
Yhc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/yhc

Reply via email to