summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-03-24 15:11:33 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-03-24 15:11:33 -0400
commit30369ac1fe0ed4e022691eceaddb848689935f87 (patch)
tree56c45748e405f69a4aac4f4d92ddd8fa6a66e0bb /tapsets.cxx
parent8f7c6d4680717700fe8beb8cc6d59c241e6677ed (diff)
downloadsystemtap-steved-30369ac1fe0ed4e022691eceaddb848689935f87.tar.gz
systemtap-steved-30369ac1fe0ed4e022691eceaddb848689935f87.tar.xz
systemtap-steved-30369ac1fe0ed4e022691eceaddb848689935f87.zip
build fix for RHEL4-era gcc 3.4.6
* tapsets.cxx (stringhash): Go to __gnu_cxx. (dwarf_cast_expanding_visitor::visit_cast_op): Use ~0 for all-ones.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 3a181cb3..c36a1aa0 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -603,7 +603,8 @@ typedef tr1::unordered_map<string,Dwarf_Die> cu_function_cache_t;
typedef tr1::unordered_map<string,cu_function_cache_t*> mod_cu_function_cache_t; // module:cu -> function -> die
#else
struct stringhash {
- size_t operator() (const string& s) const { hash<const char*> h; return h(s.c_str()); }
+ // __gnu_cxx:: is needed because our own hash.h has an ambiguous hash<> decl too.
+ size_t operator() (const string& s) const { __gnu_cxx::hash<const char*> h; return h(s.c_str()); }
};
typedef hash_map<string,Dwarf_Die,stringhash> cu_function_cache_t;
@@ -5022,7 +5023,7 @@ void dwarf_cast_expanding_visitor::visit_cast_op (cast_op* e)
string code;
exp_type type = pe_long;
- size_t mod_end = -1;
+ size_t mod_end = ~0;
do
{
// split the module string by ':' for alternatives