You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPEC] Workaround error with latest clang in 523.xalancbmk_r (#236)
523.xalancbmk_r has some code that calculates the offset of a member, but is undefined behaviour.
After llvm/llvm-project#130742 this is now optimized away which results in a miscompile.
This has been fixed in upstream versions of xerces-c, but not yet in SPEC CPU 2017: apache/xerces-c@02e4849#diff-e2f4677367dcf43bd6d31b2bbca5b1aa89e36ec155a040fe4447b201a554cf81
This patch passes -fwrapv-pointer to 523.xalancbmk_r to work around it for now. Ideally SPEC CPU 2017 will issue an update which fixes this issue and we can drop this flag.
I've included it in the 2006 benchmark too for good measure, although I haven't tried it out, see 92b58b3
0 commit comments