Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yoshijava/403.gcc
Patch for SPEC CPU2006 403.gcc
https://github.com/yoshijava/403.gcc
403 architecture benchmark bug c compiler cpu2006 gcc gnu gpl spec spec2006 specint2006
Last synced: 15 days ago
JSON representation
Patch for SPEC CPU2006 403.gcc
- Host: GitHub
- URL: https://github.com/yoshijava/403.gcc
- Owner: yoshijava
- License: gpl-2.0
- Created: 2020-12-11T02:57:26.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-16T17:24:20.000Z (almost 4 years ago)
- Last Synced: 2024-03-19T04:20:50.179Z (8 months ago)
- Topics: 403, architecture, benchmark, bug, c, compiler, cpu2006, gcc, gnu, gpl, spec, spec2006, specint2006
- Homepage:
- Size: 129 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Patch for SPEC CPU2006 403.gcc
This bug is due to wrong usage of function pointer, and happened to work on most architecture; however, it fails on iPhone and some other architectures with different calling conventions, as the discussion in the mailing list of GNU GCC. More details can be found at: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12081# Mail to SPEC.org
```
SPEC CPU version info:
Version summary:
CPU2006 version: 1.2
Benchmarks version: 118
Tools version: 118
runspec version: 6674 ($Id: runspec 6674 2011-07-21 16:47:54Z CloyceS $)I would like to propose a change to benchmark 403.gcc
According to the gnu gcc mailing list, this is a known bug solved in gcc version >= 4.8.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12081This problem occurs to me when porting this benchmark to iPhone using xcode toolchain:
Apple clang version 12.0.0 (clang-1200.0.32.27)
Target: x86_64-apple-darwin19.6.0
Thread model: posixThe solution posted in gnu's mailing list is based on c++ technique, so not applicable for 403.gcc which is based on gcc 3.2
Attached please find my own handcrafted patch.
```# Notes
* 403.gcc source code falls under the GPLv2
* Any results using this patch would not be official SPEC metrics, please see www.spec.org/fairuse.html