[Bug tree-optimization/67196] [10/11/12/13 Regression] loop-induced false positive from -Wmaybe-uninitialized

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 30 11:15:31 GMT 2022


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

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

https://gcc.gnu.org/g:61051ee5cfd59ee292984641d02caac85f6dfac3

commit r13-2273-g61051ee5cfd59ee292984641d02caac85f6dfac3
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Aug 30 11:47:49 2022 +0200

    tree-optimization/67196 - normalize use predicates earlier

    The following makes sure to have use predicates simplified and
    normalized before doing uninit_analysis::overlap because that
    otherwise cannot pick up all flag setting cases.  This fixes
    half of the issue in PR67196 and conveniently resolves the
    XFAIL in gcc.dg/uninit-pred-7_a.c.

            PR tree-optimization/67196
            * gimple-predicate-analysis.cc (uninit_analysis::is_use_guarded):
            Simplify and normalize use prediates before first use.

            * gcc.dg/uninit-pred-7_a.c: Un-XFAIL.


More information about the Gcc-bugs mailing list