[test-suite] r335248 - [SPEC] Set the language standard to C++98.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 21 08:46:01 PDT 2018
Author: meinersbur
Date: Thu Jun 21 08:46:01 2018
New Revision: 335248
URL: http://llvm.org/viewvc/llvm-project?rev=335248&view=rev
Log:
[SPEC] Set the language standard to C++98.
Clang's default dialect has changed to -std=gnu++14 in r320250. Some of
the SPEC benchmarks do not compile with this change. Set the language
version to C++ 98 (the previous default) explicitly for these benchmarks.
Differential Revision: https://reviews.llvm.org/D48398
Modified:
test-suite/trunk/External/SPEC/CFP2017rate/510.parest_r/CMakeLists.txt
test-suite/trunk/External/SPEC/CFP2017rate/526.blender_r/CMakeLists.txt
test-suite/trunk/External/SPEC/CINT2006/473.astar/CMakeLists.txt
Modified: test-suite/trunk/External/SPEC/CFP2017rate/510.parest_r/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CFP2017rate/510.parest_r/CMakeLists.txt?rev=335248&r1=335247&r2=335248&view=diff
==============================================================================
--- test-suite/trunk/External/SPEC/CFP2017rate/510.parest_r/CMakeLists.txt (original)
+++ test-suite/trunk/External/SPEC/CFP2017rate/510.parest_r/CMakeLists.txt Thu Jun 21 08:46:01 2018
@@ -267,3 +267,4 @@ speccpu2017_add_executable(
source/libparest/slave/stationary/state_discretization.cc
source/libparest/slave/stationary/synthetic_data.cc
)
+set_property(TARGET ${PROG} PROPERTY CXX_STANDARD 98)
Modified: test-suite/trunk/External/SPEC/CFP2017rate/526.blender_r/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CFP2017rate/526.blender_r/CMakeLists.txt?rev=335248&r1=335247&r2=335248&view=diff
==============================================================================
--- test-suite/trunk/External/SPEC/CFP2017rate/526.blender_r/CMakeLists.txt (original)
+++ test-suite/trunk/External/SPEC/CFP2017rate/526.blender_r/CMakeLists.txt Thu Jun 21 08:46:01 2018
@@ -1206,4 +1206,5 @@ speccpu2017_add_executable(
specrand/specrand.c
spec_backtrace.c
)
+set_property(TARGET ${PROG} PROPERTY CXX_STANDARD 98)
speccpu2017_prepare_rundir()
Modified: test-suite/trunk/External/SPEC/CINT2006/473.astar/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CINT2006/473.astar/CMakeLists.txt?rev=335248&r1=335247&r2=335248&view=diff
==============================================================================
--- test-suite/trunk/External/SPEC/CINT2006/473.astar/CMakeLists.txt (original)
+++ test-suite/trunk/External/SPEC/CINT2006/473.astar/CMakeLists.txt Thu Jun 21 08:46:01 2018
@@ -1,3 +1,5 @@
+list(APPEND CPPFLAGS -std=c++98)
+
macro(test_input run_type input output)
llvm_test_run(RUN_TYPE ${run_type}
${input}
More information about the llvm-commits
mailing list