https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90576
Bug ID: 90576 Summary: [10 regression] SPEC CPU2006 450.soplex miscompiled with -Os -flto after r271413 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: mkuvyrkov at gcc dot gnu.org Target Milestone: --- After === commit ce7b4f267706c23405705d848c1dcf686496f262 Author: hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Mon May 20 12:01:40 2019 +0000 * tree-ssa-alias.c (compare_sizes): New function. (sompare_type_sizes): New function (aliasing_component_refs_p): Use it. (indirect_ref_may_alias_decl_p): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271413 138bc75d-0d04-0410-961f-82ee72b054a4 === GCC miscompiles 450.soplex with -Os -flto at least on AArch64 and AArch32. The benchmark finishes within seconds with === 450.soplex: copy 0 non-zero return code (exit code=11, signal=0) === FWIW, "-Os -fno-lto" seem to work. Considering that both AArch64 and AArch32 are affected and the nature of the patch, this is likely affects other architectures. Honza, would you please investigate? Please let me know if it doesn't readily reproduce for you, and I'll help with a testcase.