Skip to content

Commit 7cba712

Browse files
guy-davidGuy David
and
Guy David
authored
[SPEC2017] Fix known macOS portablitiy issue in GCC (#242)
Fixes an ABI-related crash in GCC when running SPEC CPU2017. See benchmark updates in: https://www.spec.org/cpu2017/Docs/changes.html Co-authored-by: Guy David <[email protected]>
1 parent a45d162 commit 7cba712

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

External/SPEC/CINT2017rate/502.gcc_r/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ endif ()
77
speccpu2017_benchmark(RATE)
88

99
add_definitions(-DSPEC_502 -DIN_GCC -DHAVE_CONFIG_H)
10+
if(APPLE)
11+
add_definitions(-DSPEC_GCC_VARIADIC_FUNCTIONS_MISMATCH_WORKAROUND)
12+
endif()
1013
speccpu2017_add_include_dirs(. include spec_qsort)
1114
add_compile_options(-fgnu89-inline -fno-strict-aliasing)
1215

External/SPEC/CINT2017speed/602.gcc_s/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ endif ()
66

77
speccpu2017_benchmark(SPEED ORIGIN 502.gcc_r)
88

9+
if(APPLE)
10+
add_definitions(-DSPEC_GCC_VARIADIC_FUNCTIONS_MISMATCH_WORKAROUND)
11+
endif()
12+
913
## ref #########################################################################
1014

1115
speccpu2017_run_test(

0 commit comments

Comments
 (0)