|
From: <sv...@va...> - 2008-12-23 02:31:29
|
Author: sewardj
Date: 2008-12-23 02:31:22 +0000 (Tue, 23 Dec 2008)
New Revision: 8868
Log:
Comment out unused code so as to get a warning free build.
Modified:
trunk/drd/drd_semaphore.c
trunk/exp-ptrcheck/h_main.c
Modified: trunk/drd/drd_semaphore.c
===================================================================
--- trunk/drd/drd_semaphore.c 2008-12-23 02:09:17 UTC (rev 8867)
+++ trunk/drd/drd_semaphore.c 2008-12-23 02:31:22 UTC (rev 8868)
@@ -151,10 +151,10 @@
struct semaphore_info* semaphore_init(const Addr semaphore,
const Word pshared, const UInt value)
{
- unsigned n;
+ /* unsigned n; */
struct semaphore_info* p;
Segment* sg;
- const DrdThreadId drd_tid = thread_get_running_tid();
+ /* const DrdThreadId drd_tid = thread_get_running_tid(); */
if (s_trace_semaphore)
{
Modified: trunk/exp-ptrcheck/h_main.c
===================================================================
--- trunk/exp-ptrcheck/h_main.c 2008-12-23 02:09:17 UTC (rev 8867)
+++ trunk/exp-ptrcheck/h_main.c 2008-12-23 02:31:22 UTC (rev 8868)
@@ -2606,9 +2606,9 @@
//zz VG_(printf)("%u =\n", bb);
//zz }
-static ULong stats__tot_mem_refs = 0;
-static ULong stats__refs_in_a_seg = 0;
-static ULong stats__refs_lost_seg = 0;
+//static ULong stats__tot_mem_refs = 0;
+//static ULong stats__refs_in_a_seg = 0;
+//static ULong stats__refs_lost_seg = 0;
typedef
struct { ExeContext* ec; UWord count; }
@@ -2616,23 +2616,23 @@
static OSet* lossage = NULL;
-static void inc_lossage ( ExeContext* ec )
-{
- Lossage key, *res, *nyu;
- key.ec = ec;
- key.count = 0; /* frivolous */
- res = VG_(OSetGen_Lookup)(lossage, &key);
- if (res) {
- tl_assert(res->ec == ec);
- res->count++;
- } else {
- nyu = (Lossage*)VG_(OSetGen_AllocNode)(lossage, sizeof(Lossage));
- tl_assert(nyu);
- nyu->ec = ec;
- nyu->count = 1;
- VG_(OSetGen_Insert)( lossage, nyu );
- }
-}
+//static void inc_lossage ( ExeContext* ec )
+//{
+// Lossage key, *res, *nyu;
+// key.ec = ec;
+// key.count = 0; /* frivolous */
+// res = VG_(OSetGen_Lookup)(lossage, &key);
+// if (res) {
+// tl_assert(res->ec == ec);
+// res->count++;
+// } else {
+// nyu = (Lossage*)VG_(OSetGen_AllocNode)(lossage, sizeof(Lossage));
+// tl_assert(nyu);
+// nyu->ec = ec;
+// nyu->count = 1;
+// VG_(OSetGen_Insert)( lossage, nyu );
+// }
+//}
static void init_lossage ( void )
{
@@ -2643,20 +2643,20 @@
tl_assert(lossage);
}
-static void show_lossage ( void )
-{
- Lossage* elem;
- VG_(OSetGen_ResetIter)( lossage );
- while ( (elem = VG_(OSetGen_Next)(lossage)) ) {
- if (elem->count < 10) continue;
- //Char buf[100];
- //(void)VG_(describe_IP)(elem->ec, buf, sizeof(buf)-1);
- //buf[sizeof(buf)-1] = 0;
- //VG_(printf)(" %,8lu %s\n", elem->count, buf);
- VG_(message)(Vg_UserMsg, "Lossage count %'lu at", elem->count);
- VG_(pp_ExeContext)(elem->ec);
- }
-}
+//static void show_lossage ( void )
+//{
+// Lossage* elem;
+// VG_(OSetGen_ResetIter)( lossage );
+// while ( (elem = VG_(OSetGen_Next)(lossage)) ) {
+// if (elem->count < 10) continue;
+// //Char buf[100];
+// //(void)VG_(describe_IP)(elem->ec, buf, sizeof(buf)-1);
+// //buf[sizeof(buf)-1] = 0;
+// //VG_(printf)(" %,8lu %s\n", elem->count, buf);
+// VG_(message)(Vg_UserMsg, "Lossage count %'lu at", elem->count);
+// VG_(pp_ExeContext)(elem->ec);
+// }
+//}
// This function is called *a lot*; inlining it sped up Konqueror by 20%.
static inline
|