From 3c6fc7c269ef38bb4e3d147fbabe3f0dfbe1add7 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Thu, 11 Dec 2003 19:22:03 -0500 Subject: [PATCH] - Add a new target m5.fast (or just fast for short) - make stuff compile with NDEBUG - remove the TRACE setup option since it isn't useful anymore base/statistics.cc: Compile with -DNDEBUG --HG-- extra : convert_revision : a75b3881be1513abb5915b6463c6cdc1f23a62e1 --- base/statistics.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/base/statistics.cc b/base/statistics.cc index fe20a7281..726ea3c60 100644 --- a/base/statistics.cc +++ b/base/statistics.cc @@ -223,7 +223,10 @@ Data::mapStat(void *stat, StatData *data) allStats.push_back(data); - bool success = (statMap.insert(make_pair(stat, data))).second; +#ifndef NDEBUG + bool success = +#endif + (statMap.insert(make_pair(stat, data))).second; assert(statMap.find(stat) != statMap.end()); assert(success && "this should never fail"); } @@ -236,7 +239,10 @@ Data::regBin(MainBin *bin, string name) bins.push_back(bin); - bool success = (bin_names.insert(make_pair(bin,name))).second; +#ifndef NDEBUG + bool success = +#endif + (bin_names.insert(make_pair(bin,name))).second; assert(bin_names.find(bin) != bin_names.end()); assert(success && "this should not fail"); -- 2.30.2