[poolalloc] r185545 - This is a temporary fix for PR#16506:

John Criswell criswell at uiuc.edu
Wed Jul 3 08:36:26 PDT 2013


Author: criswell
Date: Wed Jul  3 10:36:26 2013
New Revision: 185545

URL: http://llvm.org/viewvc/llvm-project?rev=185545&view=rev
Log:
This is a temporary fix for PR#16506:
http://llvm.org/bugs/show_bug.cgi?id=16506
We don't do any special treatment of localtime() and gmtime() because these
functions act like allocators that SAFECode doesn't understand.

Modified:
    poolalloc/branches/eval2/lib/DSA/StdLibPass.cpp

Modified: poolalloc/branches/eval2/lib/DSA/StdLibPass.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/branches/eval2/lib/DSA/StdLibPass.cpp?rev=185545&r1=185544&r2=185545&view=diff
==============================================================================
--- poolalloc/branches/eval2/lib/DSA/StdLibPass.cpp (original)
+++ poolalloc/branches/eval2/lib/DSA/StdLibPass.cpp Wed Jul  3 10:36:26 2013
@@ -137,8 +137,10 @@ const struct {
   {"ctime",     {NRET_YARGS,  YRET_NARGS, NRET_NARGS, NRET_NARGS, false}}, 
   {"asctime",   {NRET_YARGS,  YRET_NARGS, NRET_NARGS, NRET_NARGS, false}}, 
   {"utime",     {NRET_YARGS,  YRET_NARGS, NRET_NARGS, NRET_NARGS, false}}, 
+#if 0
   {"localtime", {NRET_YARGS,  YRET_NARGS, NRET_NARGS, NRET_NARGS, false}}, 
   {"gmtime",    {NRET_YARGS,  YRET_NARGS, NRET_NARGS, NRET_NARGS, false}}, 
+#endif
   {"ftime",     {NRET_YARGS,  NRET_YARGS, NRET_NARGS, NRET_NARGS, false}}, 
 
   // printf not strictly true, %n could cause a write





More information about the llvm-commits mailing list