[PATCH] D48398: [test-suite] Set the language standard for SPEC benchmarks that do not compile using the newest.
Michael Kruse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 20 15:30:49 PDT 2018
Meinersbur created this revision.
Meinersbur added reviewers: MatzeB, kristof.beyls.
Herald added a subscriber: mgorny.
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.
Repository:
rT test-suite
https://reviews.llvm.org/D48398
Files:
External/SPEC/CFP2017rate/510.parest_r/CMakeLists.txt
External/SPEC/CFP2017rate/526.blender_r/CMakeLists.txt
External/SPEC/CINT2006/473.astar/CMakeLists.txt
Index: External/SPEC/CINT2006/473.astar/CMakeLists.txt
===================================================================
--- External/SPEC/CINT2006/473.astar/CMakeLists.txt
+++ External/SPEC/CINT2006/473.astar/CMakeLists.txt
@@ -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}
Index: External/SPEC/CFP2017rate/526.blender_r/CMakeLists.txt
===================================================================
--- External/SPEC/CFP2017rate/526.blender_r/CMakeLists.txt
+++ External/SPEC/CFP2017rate/526.blender_r/CMakeLists.txt
@@ -1206,4 +1206,5 @@
specrand/specrand.c
spec_backtrace.c
)
+set_property(TARGET ${PROG} PROPERTY CXX_STANDARD 98)
speccpu2017_prepare_rundir()
Index: External/SPEC/CFP2017rate/510.parest_r/CMakeLists.txt
===================================================================
--- External/SPEC/CFP2017rate/510.parest_r/CMakeLists.txt
+++ External/SPEC/CFP2017rate/510.parest_r/CMakeLists.txt
@@ -267,3 +267,4 @@
source/libparest/slave/stationary/state_discretization.cc
source/libparest/slave/stationary/synthetic_data.cc
)
+set_property(TARGET ${PROG} PROPERTY CXX_STANDARD 98)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48398.152181.patch
Type: text/x-patch
Size: 1212 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180620/59853d13/attachment.bin>
More information about the llvm-commits
mailing list