[Bug tree-optimization/93745] [8/9/10 Regression] Redundant store not eliminated with intermediate instruction
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 18 00:19:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93745
--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
That's why I asked "What language relies on this?"
But regardless of what language might have even looser rules than C/C++ in this
area, it would seem like a rather unfortunate design limitation for GCC not to
be able to analyze and optimize C/C++ code as well as other compilers can
because it supports languages others don't (LLVM supports most of the languages
GCC does).
What would it take to get GCC to handle this case? Changing the front-end to
implicitly declare p restrict? (That would only work in a small subset of
cases and would be wrong in many more.)
More information about the Gcc-bugs
mailing list