GithubHelp home page GithubHelp logo

yoshijava / 403.gcc Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 132 KB

Patch for SPEC CPU2006 403.gcc

License: GNU General Public License v2.0

spec gcc gnu compiler c bug benchmark cpu2006 403 gpl spec2006 specint2006 architecture

403.gcc's Introduction

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=12081

This 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: posix


The 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

403.gcc's People

Contributors

yoshijava avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.