[test-suite] r259581 - CINT2000/252.eon: Make benchmark compatible with modern C++ libs

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 2 13:47:41 PST 2016


Author: matze
Date: Tue Feb  2 15:47:41 2016
New Revision: 259581

URL: http://llvm.org/viewvc/llvm-project?rev=259581&view=rev
Log:
CINT2000/252.eon: Make benchmark compatible with modern C++ libs

The benchmark included fstream.h and iostream.h which are ancient names
not available anymore in modern C++ libs. Provide stubs for those two
headers that just include fstream and iostream.

Added:
    test-suite/trunk/External/SPEC/CINT2000/252.eon/fstream.h
    test-suite/trunk/External/SPEC/CINT2000/252.eon/iostream.h
Modified:
    test-suite/trunk/External/SPEC/CINT2000/252.eon/CMakeLists.txt

Modified: test-suite/trunk/External/SPEC/CINT2000/252.eon/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2000/252.eon/CMakeLists.txt?rev=259581&r1=259580&r2=259581&view=diff
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2000/252.eon/CMakeLists.txt (original)
+++ test-suite/trunk/External/SPEC/CINT2000/252.eon/CMakeLists.txt Tue Feb  2 15:47:41 2016
@@ -2,9 +2,9 @@ list(APPEND CPPFLAGS -include errno.h -D
 if(ARCH STREQUAL "PowerPC")
   list(APPEND CPPFLAGS -DFMAX_IS_DOUBLE)
 endif()
-list(APPEND CXXFLAGS -fno-exceptions -Wno-deprecated -fpermissive -stdlib=libstdc++)
-list(APPEND LDFLAGS -stdlib=libstdc++ -lm)
-include_directories(${BENCHMARK_DIR}/src)
+list(APPEND CXXFLAGS -fno-exceptions -Wno-deprecated -fpermissive)
+list(APPEND LDFLAGS -lm)
+include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${BENCHMARK_DIR}/src)
 
 # There's more sourcefiles in the directory than necessary so enumerate the ones
 # we want.

Added: test-suite/trunk/External/SPEC/CINT2000/252.eon/fstream.h
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2000/252.eon/fstream.h?rev=259581&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2000/252.eon/fstream.h (added)
+++ test-suite/trunk/External/SPEC/CINT2000/252.eon/fstream.h Tue Feb  2 15:47:41 2016
@@ -0,0 +1,3 @@
+// Compatibility kludge because the benchmark is using ancient header names.
+#include <fstream>
+using namespace std;

Added: test-suite/trunk/External/SPEC/CINT2000/252.eon/iostream.h
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2000/252.eon/iostream.h?rev=259581&view=auto
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2000/252.eon/iostream.h (added)
+++ test-suite/trunk/External/SPEC/CINT2000/252.eon/iostream.h Tue Feb  2 15:47:41 2016
@@ -0,0 +1,3 @@
+// Compatibility kludge because the benchmark is using ancient header names.
+#include <iostream>
+using namespace std;




More information about the llvm-commits mailing list