[Bug tree-optimization/106131] [10/11 Regression] -fstrict-aliasing breaks normal program that does not use any pointer or reference

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 11 13:04:30 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106131

--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:befa9c8b072ef8b81d4a5b46d83f81cd58318c2b

commit r11-10304-gbefa9c8b072ef8b81d4a5b46d83f81cd58318c2b
Author: Richard Biener <rguenther@suse.de>
Date:   Thu Jun 30 10:33:40 2022 +0200

    tree-optimization/106131 - wrong code with FRE rewriting

    The following makes sure to not use the original TBAA type for
    looking up a value across an aggregate copy when we had to offset
    the read.

    2022-06-30  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/106131
            * tree-ssa-sccvn.c (vn_reference_lookup_3): Force alias-set
            zero when offsetting the read looking through an aggregate
            copy.

            * g++.dg/torture/pr106131.C: New testcase.

    (cherry picked from commit 9701432ff79926a5dd3303be3417e0bd0c24140b)


More information about the Gcc-bugs mailing list