- 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
This commit is contained in:
Nathan Binkert
2003-12-11 19:22:03 -05:00
parent 1cb7159966
commit 3c6fc7c269

View File

@@ -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");