[Bug tree-optimization/106054] Tree optimizations cause mcf generates incorrect results
dizhao at os dot amperecomputing.com
Thu Jun 23 03:38:51 GMT 2022
--- Comment #4 from Di Zhao <dizhao at os dot amperecomputing.com> ---
(In reply to Andrew Pinski from comment #3)
> From https://www.spec.org/cpu2017/Docs/benchmarks/505.mcf_r.html:
> >The module spec_qsort.c does not obey strict ANSI aliasing rules. You may need to add your compiler's flag that informs it not to assume strict ANSI compliance.
I tried the "-fno-strict-aliasing" option and it works. Apologize for not
noticing this. Thanks a lot!
More information about the Gcc-bugs