[llvm-commits] [test-suite] r59315 - in /test-suite/trunk/SingleSource/Benchmarks/Shootout-C++: hash.cpp hash2.cpp

Torok Edwin edwintorok at gmail.com
Fri Nov 14 12:29:01 PST 2008


Author: edwin
Date: Fri Nov 14 14:29:00 2008
New Revision: 59315

URL: http://llvm.org/viewvc/llvm-project?rev=59315&view=rev
Log:
fix build on g++-4.3

Modified:
    test-suite/trunk/SingleSource/Benchmarks/Shootout-C++/hash.cpp
    test-suite/trunk/SingleSource/Benchmarks/Shootout-C++/hash2.cpp

Modified: test-suite/trunk/SingleSource/Benchmarks/Shootout-C++/hash.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Shootout-C%2B%2B/hash.cpp?rev=59315&r1=59314&r2=59315&view=diff

==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Shootout-C++/hash.cpp (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Shootout-C++/hash.cpp Fri Nov 14 14:29:00 2008
@@ -4,9 +4,11 @@
 
 #include <stdio.h>
 #include <iostream>
-#include <hash_map.h>
+#include <ext/hash_map>
+#include <cstring>
 
 using namespace std;
+using namespace __gnu_cxx;
 
 struct eqstr {
     bool operator()(const char* s1, const char* s2) const {

Modified: test-suite/trunk/SingleSource/Benchmarks/Shootout-C++/hash2.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Shootout-C%2B%2B/hash2.cpp?rev=59315&r1=59314&r2=59315&view=diff

==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Shootout-C++/hash2.cpp (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Shootout-C++/hash2.cpp Fri Nov 14 14:29:00 2008
@@ -4,9 +4,11 @@
 
 #include <stdio.h>
 #include <iostream>
-#include <hash_map.h>
+#include <ext/hash_map>
+#include <cstring>
 
 using namespace std;
+using namespace __gnu_cxx;
 
 struct eqstr {
     bool operator()(const char* s1, const char* s2) const {





More information about the llvm-commits mailing list