[llvm-commits] CVS: llvm/lib/CWriter/Writer.cpp
John Criswell
criswell at cs.uiuc.edu
Tue Jul 8 09:53:02 PDT 2003
Changes in directory llvm/lib/CWriter:
Writer.cpp updated: 1.104 -> 1.105
---
Log message:
Removed size_t from the parameter list of the malloc() prototype in generated C
code. This prevents a compiler warning on Sparc that causes the tests to fail.
---
Diffs of the changes:
Index: llvm/lib/CWriter/Writer.cpp
diff -u llvm/lib/CWriter/Writer.cpp:1.104 llvm/lib/CWriter/Writer.cpp:1.105
--- llvm/lib/CWriter/Writer.cpp:1.104 Sat Jun 28 14:29:34 2003
+++ llvm/lib/CWriter/Writer.cpp Tue Jul 8 09:52:09 2003
@@ -676,7 +676,7 @@
// Print Malloc prototype if needed
if (needsMalloc){
Out << "\n/* Malloc to make sun happy */\n";
- Out << "extern void * malloc(size_t);\n\n";
+ Out << "extern void * malloc();\n\n";
}
// Output the global variable declarations
More information about the llvm-commits
mailing list