[Bug tree-optimization/110743] Unexpected -ftrivial-auto-var-init=pattern behavior with partial bitfields

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 24 11:46:04 GMT 2026


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

--- Comment #18 from GCC 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:df1eb95b6e915117dc33cf70dbd46be66c23057f

commit r17-1801-gdf1eb95b6e915117dc33cf70dbd46be66c23057f
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Jun 24 09:36:49 2026 +0200

    tree-optimization/110743 - expand RMW uninit detection

    The following expands the RMW bit clear/set pattern detection to
    also cover VIEW_CONVERT_EXPR as it appears when generic word_mode
    vectorization is involved.

            PR tree-optimization/110743
            * tree-ssa-uninit.cc (maybe_warn_operand): Also cover
            VIEW_CONVERT_EXPR uses for RMW bit clear/set pattern
            detection.

            * gcc.dg/uninit-pr110743-2.c: New testcase.


More information about the Gcc-bugs mailing list