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

"pinskia at gcc dot gnu.org 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

Drea Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |aarch64-linux-gnu
           Keywords|                            |ra, wrong-code
          Component|tree-optimization           |rtl-optimization

--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Carlos Galvez from comment #1)
> Bisecting shows the problem appears here (GCC 7):
> https://github.com/gcc-mirror/gcc/commit/
> 10406801f48939f8cad083ed3ed86143bef5eb01

If it started here then it is an RTL level issue. It might even have been a
register allocator issue.

> 
> 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.

Most likely yes but there has been many fixes to the register allocator
afterwards that it might be fixed already fully too.
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.