From: Nathan Binkert Date: Fri, 12 Dec 2003 00:22:03 +0000 (-0500) Subject: - Add a new target m5.fast (or just fast for short) X-Git-Tag: m5_1.0_beta2~234 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c6fc7c269ef38bb4e3d147fbabe3f0dfbe1add7;p=gem5.git - 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 --- 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");