[Bug tree-optimization/126374] Incorrect codegen with -O2 -fno-tree-sra, struct containing union

carlosgalvezp at gmail dot com via Gcc-bugs <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126374

--- Comment #1 from Carlos Galvez <carlosgalvezp at gmail dot com> ---
Bisecting shows the problem appears here (GCC 7):
https://github.com/gcc-mirror/gcc/commit/10406801f48939f8cad083ed3ed86143bef5eb01

And disappears here (GCC 10):
https://github.com/gcc-mirror/gcc/commit/744fd446c321f78f9a1ce4ef5f83df8dcfa44a9e

But the last commit doesn't appear to actively fix any bug, so it might be just
coincidence.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.