summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2003-12-11 19:22:03 -0500
committerNathan Binkert <binkertn@umich.edu>2003-12-11 19:22:03 -0500
commit3c6fc7c269ef38bb4e3d147fbabe3f0dfbe1add7 (patch)
tree8730626f4ce5011c60ab9d1ecaaf1b3851f9aaa7 /base
parent1cb71599664c9d18e91cbfb596a10c0d134baa91 (diff)
downloadgem5-3c6fc7c269ef38bb4e3d147fbabe3f0dfbe1add7.tar.xz
- 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
Diffstat (limited to 'base')
-rw-r--r--base/statistics.cc10
1 files 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");